Difference between a kthread and an ordinary process.
Pranav Peshwe
pranavpeshwe at gmail.com
Tue Jan 24 01:22:00 PST 2006
Hello,
When a kthread is created using the kthread_create (9)
function, i found out that a new instance of struct proc is created
and allocated for the thread just as in case of a creation of a new
process.Also, the thread is assigned a pid as in the case of a
process.
What is the difference between a kernel thread and a normal process
created using fork ? except the address space sharing with swapper and
kernel mode execution of the kthread. Is a kthread effectively just a
process always running in kernel mode ?
TIA.
Regards,
Pranav.
More information about the freebsd-hackers
mailing list