The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 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:

reply

Posted by Pavan Kumar Keely on August 30, 2001 at 11:02 AM

> Like in Unix we are making Daemon Thread which is running countinuously in background ,
> How can we make it in Java so that it wiil run countinuously.

> Thanks in advance
> SK Mishra


You can set a thread as daemon thread using the method setDaemon(boolean). That will run continuously in the background. If there are no other threads running in the application then the main thread will stop the daemon thread and exits the application.

Is this what you wanted? If not please fell free to contact me
at keelypavan@hotmail.com

Thank you,

bye
Pavan Kumar Keely





Replies:

Sponsored Links



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