Using pthreads if the main thread of execution dies all of the other
threads are supposed to exit, possibly abnormally. That's why you have to
do a pthread_join() to make sure that all of the other threads have
exited, or trust that they have with a pthread_detach().
I don't know what else is going on under the hood on the level of the
kernel, but I would imagine that the pthreads implementation reflects to
the underlying structures.
Can anyone comment on this?
--Chris
------------
Christopher Blizzard
AppliedTheory Communications, Inc.
http://odin.appliedtheory.com/
blizzard@appliedtheory.com
------------