• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DAEMON THREAD

 
thomas davis
Ranch Hand
Posts: 207
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is DAEMON Thread? What are the services provided by the Daemon thread to User Threads? When does it get killed or died?
How to create a daemon thread? How to assign that thread to user threads? What are benefits the user threads getting from this thread?
What is DAEMON Thread? What are the services provided by the Daemon thread to User Threads? When does it get killed or died?
How to create a daemon thread? How to assign that thread to user threads? What are benefits the user threads getting from this thread?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As it says in the Javadoc for Thread.setDaemon(), if the only threads left running in a JVM have the "daemon" property set, then the JVM will exit. That is the whole definition. None of these other questions make sense, really.
As it says in the Javadoc for Thread.setDaemon(), if the only threads left running in a JVM have the "daemon" property set, then the JVM will exit. That is the whole definition. None of these other questions make sense, really.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic