What is a daemon threads?- It is a service provider thread which provides the services to the user thread.
- Daemon threads run at a low priority.
- The GC(Garbage Collector) is an example of such thread.
- It is mostly created by JVM for performing background task like garbage collection and finalize() method.
- It will throw an IllegalThreadStateException if corresponding thread is already started and running.
|