Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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]
subject: Daemon Thread and Non-Daemon Thread
finally code not executed
Daemon threads & non daemon Threads
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013