On Tue, Feb 10, 2009 at 2:15 PM, soumen acharya
<[email protected]> 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.)
>
> Does it create unique task for each user thread, if so then how to identify
> each user thread from the kernel task structure, like which field to look
> for the information.

see the  difference between fields tgid and pid in task_struct

http://books.google.co.in/books?id=9yIEji1UheIC&pg=PA77&lpg=PA77&dq=tgid+field+in+task_struct&source=web&ots=JCiIqtiSE_&sig=np7pxCdNN1aLvfSJye4x31saSgA&hl=en&ei=4EKRSd7-IKGbtweb79TXCw&sa=X&oi=book_result&resnum=1&ct=result

http://mail.nl.linux.org/kernelnewbies/2004-06/msg00418.html


Thanks -
Manish

>
> Thanks
> Soumen
> IIIT Bangalore
> 26/C Electronics City
> Bangalore 560 100 INDIA
> Mobile-(+91)9916596352
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to