[concurrency-interest] Termination of daemon threads

Dimitris Andreou jim.andreou at gmail.com
Tue Apr 1 00:02:00 EDT 2008

Hi all,

Here is my question: How are daemon threads terminated? What if they are 
in the middle of a critical operation, like writing to a file? They seem 
to exit immediately. How could that be safe? Or a daemon thread should 
never do anything critical, but always delegate such work to a 
non-daemon thread? If any case, shouldn't it be documented in 

Dimitris Andreou

More information about the Concurrency-interest mailing list