Can someone from SuSE verify that on 2.4 kernels, separate pthreads of the same process will show up with ps having separate PID's? Isn't that against the standard? B-)
Brad Bourn wrote:
Can someone from SuSE verify that on 2.4 kernels, separate pthreads of the same process will show up with ps having separate PID's?
IIRC, that's what happens in 2.4.
Isn't that against the standard?
Possibly. You'd have to read the POSIX 1003.1c standard to find out. The following might also be helpful. http://people.redhat.com/drepper/nptl-design.pdf -- JDL
On Monday 30 August 2004 21:27, Brad Bourn wrote:
Can someone from SuSE verify that on 2.4 kernels, separate pthreads of the same process will show up with ps having separate PID's?
Yes. That's also the only way to tell the threads apart so you can send signals etc.; to the outside, pthreads look the same as just another process.
Isn't that against the standard?
I am not sure. But then, that might have been one more reason to migrate to POSIX threads with kernel 2.6. You might want to read up at http://www.kernel.org/ for more details. CU -- Stefan Hundhammer <sh@suse.de> Penguin by conviction. YaST2 Development SuSE Linux AG Nuernberg, Germany
participants (3)
-
Brad Bourn
-
John Lamb
-
Stefan Hundhammer