"Paul J. Reder" wrote:
> 


>                                                   The problem seems to be
> the window at the end of the worker_thread after is has decremented and
> released the mutex and before it exits. I am seeing cases where the child_main
> process thinks that worker_thread_count == 0, but threads haven't exited
> yet. If child_main exits, then threads are orphaned. 

Thanks for the explanation.  That makes sense finally.  I was beginning
to think that the PTHREAD_CREATE_DETACHED code in the Linux kernel was
broken.

Greg

Reply via email to