A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Daemon Thread and Non-Daemon Thread
Joined: Dec 08, 2004
Dec 21, 2004 08:18:00
I want to know what is Daemon Thread and how it is different from
Thanks & Regards,
author and iconoclast
Joined: Jul 08, 2003
Dec 21, 2004 08:32:00
It's just a flag in the Thread object. The JVM will continue to run only as long as non-daemon threads exist. As soon as the only running threads have the daemon property set, the JVM will exit. That's it -- nothing more.
[Jess in Action]
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Daemon Thread and Non-Daemon Thread
Daemon threads & non daemon Threads
finally code not executed
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015