The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

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.

Message:

deamon threads

Posted by G.Salai Sivamal on June 04, 2001 at 8:35 AM

> If it is said that the daemon threads are existing even when the JVM stops execution, then when does the Daemn gets garbage collected and how to stop the daemmon threads?????

It is not sure the deamon threads will exist even the JVM stops execution. We can assume the deamon threads are like Service threads and it provide services to User Threads. The deamon thread will be garbage collected,if no more user threads are to schdule.

When ever a user thread Gar/. Collected the JVM will check for any more user threads to scdule. If no more user threads then JVM will gar./ collect all the deamon threads.

regs
Salai Sivamal.G





Replies:

Sponsored Links



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