在ps的联机帮助页中
tid TID the unique number representing a dispatchable
entity (alias lwp, spid). This value may also
appear as: a process ID (pid); a process group
ID (pgrp); a session ID for the session leader
(sid); a thread group ID for the thread group
leader (tgid); and a tty process group ID for
the process group leader (tpgid).
tgid TGID a number representing the thread group to which
a task belongs (alias pid). It is the process
ID of the thread group leader.
在Ubuntu中,tid和tgid看起来总是和pid一样,对于用户进程和内核线程(我运行ps -o pid,tid,tgid,cmd)在Linux中是真的,为什么?
在System V或BSD等其他Unix中是否正确?
谢谢.