Re: Which function returns LWP in Linux.

From: Samuel Thibault
Date: Mon May 17 2010 - 09:30:23 EST

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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at