Home > DeveloperSection > Interviews > What is difference between user Thread and daemon Thread?

Posted on    January-26-2015 10:57 PM

 Java Thread 
 1 Answer(s)
  616  View(s)
Rate this:

john rob

Total Post:11

Posted on    January-26-2015 11:57 PM

When we create a Thread in java program, it’s known as user thread. A daemon thread runs in background and doesn’t prevent JVM from terminating. When there are no user threads running, JVM shutdown the program and quits. A child thread created from daemon thread is also a daemon thread.

Don't want to miss updates? Please click the below button!

Follow MindStick