File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Daemon Threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Daemon Threads" Watch "Daemon Threads" New topic
Author

Daemon Threads

Lalitha Gottumukkula
Ranch Hand

Joined: May 24, 2005
Posts: 45

"The virtual machine exits whenever all non-daemon threads have completed."

What does this mean ?

What are Daemon threads and how do they differ from user threads ?
Pls. explain the behaviour of daemon threads with an example.

Thanks,
Lalitha.
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
first spot in google


java amateur
nagaraj reddy
Ranch Hand

Joined: Feb 21, 2005
Posts: 43
As for as My Knowledge Concerned

in java u acn set a thread as Daemon thread by using setDaemon() method.Daemon threads will be running in background although your program completed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Daemon Threads
 
Similar Threads
Unclear
tomcat don�t release port 8080 when on shot down
what is daemon threads
regarding threads
Priority of Daemon threads