Re: A question about _thread_ of Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Thanks in advance. Another question, what's the thread id returned by
pthread_self() ? Is there an field in task_struct ?

Regard,
Cheng

I "guess" the 'pid' field of task_struct  would be returned, as pthread_self() by definition returns the calling thread's ID which in the kernel should be the thread's pid.Somebody please CMIIW.




--
"There are 10 people in the world - those who understand binary and those who dont !"

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux