WHAT IS DIFFERENCE BETWEEN USER THREAD AND DAEMON THREAD?

john rob

Total Post:11

Points:55
Posted by  john rob
Thread 
 671  View(s)
Ratings:
Rate this:
  1. john rob

    Post:11

    Points:55
    What is difference between user Thread and daemon Thread?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!