There is no affect of the thread running the main() method on the threads created by main() method. Other threads keep on running as per how they are programmed even if the main thread dies.
The whole program ends only when all the non-daemon threads end.
Simple analogy, children don't die when the parents die. Do you think they should?
-Paul.
------------------
Get Certified, Guaranteed!
(Now Revised for the new
Pattern)
www.enthuware.com/jqplus
Try out the world's only WebCompiler!
www.jdiscuss.com