Re: Thread_Id

RVK
2005-07-14T05:33:07Z

You are right Ben....gettid() will do for me. Previously for 2.4.x
(2.4.18)thread libraries I normally was using pthread_self().

Raghu

Benedikt Spranger wrote:

>Hi,
>
>
>>Can anyone suggest me how to get the threadId using 2.6.x kernels.
>>pthread_self() does not work and returns some -ve integer.
>>
>>
>
>Let me guess: You are looking for get_tid() :-)
>
>Bene
>.
>
>
>