• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

where is the garbage collector thread

 
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Which one of these threads is the garbage collector thread?
[ July 26, 2003: Message edited by: Marlene Miller ]
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Uh oh. I don't think this is an advanced topic.
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Marlene Miller
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Jim.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic