• Post Reply Bookmark Topic Watch Topic
  • New Topic

Daemon

 
hemanth kumar
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a daemon ?
 
Sri Bala
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You make a thread Daemon if you don't want the main program to wait for the thread to end. A program waits if atleast one non Daemon thread is executing. Here's a program for you. Try to run it with and without setDaemon(true);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!