* help
@ 2006-08-29 8:12 Limeng [李萌]
2006-08-29 8:46 ` [OT] thread identification (was: help) Erik Mouw
2006-08-29 8:48 ` help Jan Engelhardt
0 siblings, 2 replies; 3+ messages in thread
From: Limeng [李萌] @ 2006-08-29 8:12 UTC (permalink / raw)
To: linux-kernel
Hi,
How can I get one thread’s LWP id on linux?
The thread is not the main thread, so that getpid() does not work. And the LWP id is not the same as the result by pthread_self().
Any suggestion?
Xixi
2006-8-29
^ permalink raw reply [flat|nested] 3+ messages in thread
* [OT] thread identification (was: help)
2006-08-29 8:12 help Limeng [李萌]
@ 2006-08-29 8:46 ` Erik Mouw
2006-08-29 8:48 ` help Jan Engelhardt
1 sibling, 0 replies; 3+ messages in thread
From: Erik Mouw @ 2006-08-29 8:46 UTC (permalink / raw)
To: Limeng [??????]; +Cc: linux-kernel
On Tue, Aug 29, 2006 at 04:12:18PM +0800, Limeng [??????] wrote:
> How can I get one thread???s LWP id on linux???
See gettid(2).
> The thread is not the main thread, so that getpid() does not
> work. And the LWP id is not the same as the result by
> pthread_self().
>
> Any suggestion?
Don't ask it over here, this list is about kernel development, not
about pthread questions.
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: help
2006-08-29 8:12 help Limeng [李萌]
2006-08-29 8:46 ` [OT] thread identification (was: help) Erik Mouw
@ 2006-08-29 8:48 ` Jan Engelhardt
1 sibling, 0 replies; 3+ messages in thread
From: Jan Engelhardt @ 2006-08-29 8:48 UTC (permalink / raw)
To: Limeng [李萌]; +Cc: linux-kernel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 263 bytes --]
>Hi,
> How can I get one thread’s LWP id on linux?
> The thread is not the main thread, so that getpid() does not work.
>And the LWP id is not the same as the result by pthread_self().
>
> Any suggestion?
gettid(), I assume.
Jan Engelhardt
--
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-08-29 8:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-29 8:12 help Limeng [李萌]
2006-08-29 8:46 ` [OT] thread identification (was: help) Erik Mouw
2006-08-29 8:48 ` help Jan Engelhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).