2007-09-17 09:59:37

by Yishai Hadas

[permalink] [raw]
Subject: kernel thread id

Hi List,

I'm using NPTL multi-threaded library and kernel 2.4.

When a new thread is created using the pthread_create call the returned
thread handle is pthread_t.

I want to get the kernel thread id for this pthread - means similar to
what gettid returns when it's called by the thread itself.

How can achieve this information from the creator thread?



Any help is appreciated.

Yishai.

**********************************************************************************************

The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or? the
sender immediately and do not disclose the contents to anyone or make copies.
** eSafe scanned this email for viruses, vandals and malicious content **

**********************************************************************************************