* How to get thread ID(LWP) in program ?
@ 2007-06-20 4:05 Gaurav Bhatnagar
0 siblings, 0 replies; only message in thread
From: Gaurav Bhatnagar @ 2007-06-20 4:05 UTC (permalink / raw)
To: linux-newbie
Hi,
I have a program that creats a number of threads using pthread_create
function. When I use "ps -eLf" command I see a column LWP i.e.
(threadID) of all newly created process. I want to print these LWP
from my program in thread routines of each thread to see which LWP
belongs to which thread.
Please tell me what function should i use to print LWP of threads.
Thanks in advance.
Regards,
Gaurav
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-06-20 4:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-20 4:05 How to get thread ID(LWP) in program ? Gaurav Bhatnagar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox