File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multithreading

 
manoj Mahadik
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is demon thread in java multithreading?
 
Ajith Kallambella
Sheriff
Posts: 5782
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a good question for the Threads and Synchronization forum and I am moving it there!
 
ali farid
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A daemon thread is a low priority thread that runs in the background. e.g garbage collector
If you make a thread a daemon thread calling setDaemon(true);
When all the non daemon threads complete, the program terminates.
If a thread is a daemon, then any threads it creates will automatically be daemons.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic