2008-05-04 03:15:52 Why each pthread has own pid in muli-thread application?
new kernel (CHINA)
Message: 55427
As I know, a group of threads in the same process only has the same pid, but I find each thread has own pid by getpid(). By "ps "command, each pthread has own pid too.
QuoteReplyEditDelete
2008-05-04 04:17:58 Re: Why each pthread has own pid in muli-thread application?
Mike Frysinger (UNITED STATES)
Message: 55455
there is no spec or requirement that says getpid() must return the same value for threads in the same process. it is simply how the linuxthreads implementation works.