Dear Bindu! Hi! Well daemon threads are the threads which run in the background. Thease are like the services in Windows NT and daemon process in unix like httpd,smbd etc. So thease threads are being executed countinuously by the operating system as b/g processes.Which are invoked by the system. In JVM a green thread is always present.This is daemon thread. The non-daemon thread is the thread invoked by the user or programmer.After finishing it's task this thread will get died.This you can say forground process. If still doubt is there fill free. Dharmesh.
Joined: Sep 28, 2000
Dear Bindu! Hi! U asked @ daemon & non-daemon thrds. Well daemon thrds. are those thrds. which are invoked by the system and run in the background like services in Windows NT and Daemon processes in Unix.In JAVA JVM always executes a thread known as green thread as the b/g process. So these are the b/g threads. Non-daemon thrds. are invoked by the user or programmer.After executing it's task it will get died. So it run only in f/g. If still confusion is there fill free to ask. Dharmesh.