Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DAEMON THREAD  RSS feed

 
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?
 
author and iconoclast
Sheriff
Posts: 24219
40
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.
 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!