Hi Syamsul,
A daemon is a term we get from Unix. It is essentially a process that runs in the background unbeknownst to the user, like rlogind. A
Java daemon thread is a thread that will not prevent the JVM from exiting when all the non-daemon thread are finished. For example if Threads A and B are non-daemons and Threads C, D and E are daemons and no other threads are running, when Threads A and B finish, the JVM will exit. I personally like to set all worker threads to daemons so that there is no chance that they can prevent the JVM from exiting.
Michael Morris
[ March 07, 2003: Message edited by: Michael Morris ]
[ March 07, 2003: Message edited by: Michael Morris ]
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher