wood burning stoves 2.0*
The moose likes Java in General and the fly likes where is the garbage collector thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "where is the garbage collector thread" Watch "where is the garbage collector thread" New topic
Author

where is the garbage collector thread

Marlene Miller
Ranch Hand

Joined: Mar 05, 2003
Posts: 1391

Which one of these threads is the garbage collector thread?
[ July 26, 2003: Message edited by: Marlene Miller ]
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

moving this to the Advanced forum as this is far beyond the level of detail you need for the Programmer's exam. You can continue the conversation there.
Marlene Miller
Ranch Hand

Joined: Mar 05, 2003
Posts: 1391
Uh oh. I don't think this is an advanced topic.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
The question may not have been intended as advanced, but a detailed answer would be, should someone wish to research it for a specific JVM. The simple answer is in general, we don't really know; that's an implementation detail and generally not our business anyway. Furthermore the JVM is under no obligation to implement GC using a single Java Thread instance; it's extremely possible that GC is being carried out by a native code thread somewhere (note lower-case 't'), and won't appear as part of any ThreadGroup. Also it's probably a mistake to think that there's just one thread doing GC, because GC is a complex system and different aspects of GC occurin a variaety of contexts. I'm guessing that the "Finalizer" thread is part of the system, but not the whole thing. "Reference Handler" - maybe part also. I imagine these threads do specific things as necessary, but still aren't the whole system - most is probably hiding in native code somewhere. For more detail, you'd probably have to go to the Community Source releases to see sample JVM code, and try to locate modules that deal with garbage collection, to see how they're set up.


"I'm not back." - Bill Harding, Twister
Marlene Miller
Ranch Hand

Joined: Mar 05, 2003
Posts: 1391
Thank you Jim.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where is the garbage collector thread
 
Similar Threads
Thread count
Threads and Garbage Collection
Thread-0?
listing all system threads
Two queries