On Sun, 07 May 2006 15:19:21 +0200
Per Jessen
In my case the threads are running completely independent of oneanother, except for the sharing of various system resources. Threads run in the context of the process. They all share the same global memory. Even when a thread runs in a detached state, it is still part of the parent process. As I said, file descriptors can be reused. So, if fd 14 is closed, the system can return it to you.
Also, in the 2.4 kernel, the old Linux Threads, each thread had a
separate PID where under the 2.6 kernel, you get 1 pid for the process.
(You can force the old Linux Threads behavior though).
--
Jerry Feldman