Re: kernel threads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 30, 2004 at 13:15:23 +0530, aksingh@hss.hns.com wrote:
> i read that already, there the programmer has used his own functions to
> create threads and all, i just wanted to know if kernel threads are
> standard features and if kernel provides some functions to create, destroy
> them, because I never came across them in linux till now. I dont think
> drivers create different threads, correct ?

Kernel threads are created, surprisingly, with a function
kernel_thread(). Then they need to call daemonize() to fully get rid of
their userland and reparent to init, because they are created by cloning
whatever process happens to be current.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux