| Class 2 | Intermediate Java 30-IT-397 |  | 
Daemon Threads
- 
Daemon threads are basically service threads or system threads.
- 
They simply perform a service for all running programs, but are not part
of the program itself.
- 
The garbage collection thread, for instance, is a daemon threads.
- 
You can make a thread a daemon by calling setDaemon(true) on that
thread.
- 
When only daemon threads exists, the program is finished and the system
exits.
Thread Groups
 
Created by:  Brandan Jones
December 17, 2001