This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

demon thread

 
gaurav nayyar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

what is demon thread ??
how it is used ??
can anybody help me ??
is this in scjp2 course??
 
Alex Sbityakov
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
LOL, demon threads
You mean Daemon Threads. These threads provides services for other threads. You can set one by calling setDaemon(true). One important thing to remember is that when all non-daemon threads end, the program exits whether or not there ar daemon threads running.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic