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

Re: what's the relationship between tgid, tid and pid ?



> It seems tid = pid, while tgid is head pthread pid. 

"tgid" is the PID of the whole POSIX.1 process.
"pid" is a per-thread PID-like number.

> But the following lines let me confused.

You didn't read the rest of the function to see where it's changed again.





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