From: "H. Peter Anvin" <hpa@zytor.com>
To: Samuel Thibault <samuel.thibault@ens-lyon.org>,
Srinivas Nayak <sinu.nayak2001@gmail.com>,
Jaswinder Singh Rajput <jaswinderlinux@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: Which function returns LWP in Linux.
Date: Mon, 17 May 2010 11:13:52 -0700 [thread overview]
Message-ID: <4BF18760.2090907@zytor.com> (raw)
In-Reply-To: <20100517133012.GC26359@const.bordeaux.inria.fr>
On 05/17/2010 06:30 AM, Samuel Thibault wrote:
> Srinivas Nayak, le Mon 17 May 2010 15:43:17 +0530, a écrit :
>> After some more research, i foind that
>>
>> syscall(SYS_gettid)
>>
>> returns LWP id. Isn't this correct?
>
> It is correct only on Linux, but yes.
>
For libc's notion of the current thread, pthread_self(3).
-hpa
prev parent reply other threads:[~2010-05-17 18:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-17 6:27 Srinivas Nayak
2010-05-17 6:56 ` Jaswinder Singh Rajput
2010-05-17 7:03 ` KOSAKI Motohiro
2010-05-17 7:33 ` Jaswinder Singh Rajput
2010-05-17 10:13 ` Srinivas Nayak
2010-05-17 13:30 ` Samuel Thibault
2010-05-17 18:13 ` H. Peter Anvin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BF18760.2090907@zytor.com \
--to=hpa@zytor.com \
--cc=jaswinderlinux@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=samuel.thibault@ens-lyon.org \
--cc=sinu.nayak2001@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome