Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2006 14:51:59 +0530
From:      Pranav Peshwe <pranavpeshwe@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Difference between a kthread and an ordinary process.
Message-ID:  <cdfd7d6d0601240121l3a58bf1cg29b608f178bb1098@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cdfd7d6d0601240121l3a58bf1cg29b608f178bb1098>