A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Programmer Certification (SCJP/OCPJP)
daemon thread & user thread
Joined: Nov 27, 2002
Nov 27, 2002 08:49:00
Is the garbage collection thread a non-daemon thread ? and can the garbage collection thread outlive the last user thread ?
Joined: Oct 17, 2001
Nov 27, 2002 09:30:00
ok.... lets look at this objectively.
* by definition the JVM won't shut down til all user (non-daemon) threads finish executing.
so.... if the garbage collector is a user thread -- how would the JVM ever shut down?
I agree. Here's the link:
subject: daemon thread & user thread
Query about Daemon thread.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014