[concurrency-interest] The default thread factory

Bjørn-Ove Heimsund bjornoh@mi.uib.no
Thu, 8 Jan 2004 09:58:20 +0100 (CET)


The default thread factory returned by Executors creates user (not deamon)
threads. As such, an ExecutorService which uses this default factory must
have its shutdown method called so that the program may terminate.

I am wondering about the rationale for this decision. Why not use deamon
threads by default? (I know that I can provide my own thread factory)

Bjørn-Ove Heimsund
Centre for Integrated Petroleum Research
University of Bergen, Norway

(+47) 555 84962