Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deamon thread

 
laxmidhar prad
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir
kind tell me what is deamon thread & give one example
 
Awais Sheikh
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please visit this link, u can get brief note from this link.Deamon Threads

Thanx
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This and previous thread sound like blatant homework, but I take issue with the content of the above article anyway.

The above article makes it sound like daemon threads are something really special.

A deamon thread differs from non-daemon thread in only one small way. An active daemon thread does not prevent JVM shut-down, whereas non-daemon threads do.

This feature makes daemon threads useful for services etc., like the article suggests, but there is nothing that says they have to be used that way.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic