• Post Reply Bookmark Topic Watch Topic
  • New Topic

priority of Java Garbage Collector  RSS feed

 
Anil Deshpande
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I teach Java in my college. Some students asked me what is the priority of the garbage collector? I am really struck my the question.

Is garbage collector a thread just like main thread with NORM_PRIORITY. Please help me with the answer
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does ti have a priority at all? There are actually several garbage collectors and their priority can vary.
 
Anil Deshpande
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are actually several garbage collectors and their priority can vary.


Are there many garbage collectors? Can you elaborate.
 
Campbell Ritchie
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at this. Of course, this varies from JVM to JVM; an IBM JVM may have different garbage collectors altogether.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!