From mboxrd@z Thu Jan 1 00:00:00 1970 From: pshah.mumbai@gmail.com (Prashant Shah) Date: Fri, 17 Jun 2011 10:56:57 +0530 Subject: Linux kernel thread model In-Reply-To: <399106.3291.qm@web95802.mail.in.yahoo.com> References: <399106.3291.qm@web95802.mail.in.yahoo.com> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi manish, On Thu, Jun 16, 2011 at 10:09 AM, manish honap wrote: > Hi all > > Can someone please tell me what is the threading model of linux kernel ? > user space thread:kernel thread process - n:1 or m:n or 1:1 Straight from Linux Kernel Development 3rd Edition book... In Linux kernel, there is no concept of thread. Linux implements all threads as standard processes. Thread is just a process that shares resources with other processes. There are no special data structures to represent threads. Each thread has its own process descriptor and appears to kernel as normal process - they just happen to shares resource such as address space with other processes.