Thread groups and daemon
Could anyone please explain me the use of thread groups.Also, could anyone explain me what is daemon and non-daemon threads and their use?thanks in advance.(I need to know it for the SUN certification exam.)
[243 byte] By [
034163907] at [2007-9-26 1:26:25]

A deamon thread is one that works like any other thread while your program is running, but when all non-deamon threads are closed, the program closes. Thus, If I have 1 non-deamon thread and 100 deamon threads and I close the non-deamon thread, all 101 threads close. But if I have 2 non-deamon threads and I close one, the program still remains active. Does that help?
Also, for more info on this and thread groups, check the java tutorial http://java.sun.com/docs/books/tutorial/ and search for whatever you are looking for!Gene