On Tue, Feb 10, 2009 at 9:54 AM, pradeep singh <pradeep.rautela@xxxxxxxxx> wrote: > On Tue, Feb 10, 2009 at 2:15 PM, soumen acharya > <soumen.acharya@xxxxxxxxxxx> wrote: >> >> >> Hi, >> >> >> Is it possible to get thread id information from task_struct structure. >> >> My point is.... >> Say a user process creates multiple threads, how does kernel handles each >> thread (thread to task mapping.) > > kernel does not handle each of them. There is a user space scheduler > which takes care of them. > Kernel is oblivious to usespace threads. > I'm not an expert on linux threading, but I think the above is misleading. There are a number of threading models supported in linux. Most are 5+ years old and are pure userspace implementations. Native POSIX threading came to the 2.6.x kernel a while ago. http://en.wikipedia.org/wiki/Native_POSIX_Thread_Library IF this is the threading model under discussion, then there is kernel involvement. Greg -- Greg Freemyer Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer First 99 Days Litigation White Paper - http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ