thread id
hi frnds,
I am new to threads in linux, so for learning threads from begining I have downloaded a tutorial and start working on it.
pthread_create() function, requires 4 args, among tht first argument is id of new thread. I have stored tht id into a var t_id (of type pthread_t).
Wen I print the t_id, its a 10 digit negative value.
I am not surprizing with the 10 digits but wy it is negative ??
as per my knowledge in unix any descriptor is non-negative int values.
then wy thread ids are not positive integers ?
is there any specific reason ?
|