The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


what are daemons / for

Posted by on May 17, 2001 at 9:48 AM

Marking a "Thread" as a daemon thread means that it should
automatically be killed when no other (non-daemon) application
thread remains to be executed.

a daemon needs no care. you just create him and let him do what he is told to do, you dont have to worry. The gain: Although the daemon is independent in his doing and administered nowhere in your code, your application does NOT become a "zombie" process, when you finish: The jvm will terminate all the daemons when the other app classes are done.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us