Monday, June 16, 2003 02:36 AM
A JVM will execute threads till there are no more non-daemon thread. When all non-daemon thread are stopped execution the JVM will end. So a daemon thread won't stop your JVM from stopping while a non-daemon thread will do so. Most of the time a daemon thread is used for kind of profiling your program, as your program runs it collects data, when the 'normal' program stops, your profiling thread won't stop your program from stopping!