Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Priority of garbage collector  RSS feed

 
Smita Chopra
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whats the priority of garbage collector thread? I have read it's low priority but is any particular priority assigned to it?
[ July 01, 2005: Message edited by: Smita Chopra ]
 
Ramya Thyagarajan
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The garbage collector is a low priority thread that runs
periodically, releasing memory used by objects that are not needed anymore.
The garbage collection (GC) algorithm varies from one JVM to another. There are different
algorithms being used, like reference counting or the mark and sweep algorithm.

While you can request that the garbage collector run, it is important to note that you can
never force this action.

hope this info helps..!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!