pthreads : questions about concurrency and lifetime

Garrett Cooper youshi10 at u.washington.edu
Wed Nov 29 00:07:23 UTC 2006


Pieter de Goeje wrote:
> On Tuesday 28 November 2006 23:41, Garrett Cooper wrote:
>   
>> So that means no, after a function's definition is reached the
>> thread/resources stay in a semi-'alive' (maybe 'zombified') state?, or
>> does the kernel cleanup / reclaim all of the resources tied up with the
>> thread?
>> -Garrett
>>     
> If you detach the thread, it will properly clean up after it self, after the 
> thread has finished running.
>
> -- Pieter
>   
Awesome; that's the answer I was looking for.
Thanks again!
-Garrett


More information about the freebsd-hackers mailing list