samuelbenichou / OperatingSystem-Garbage-collection

A generic mark-and-sweep garbage collector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OperatingSystem-Garbage-collection

alt text

Build Status Price

The garbage collector, attempts to reclaim garbage, or memory occupied by objects that are no longer in use by the program.

Mark and Sweep Algorithm

Any garbage collection algorithm must perform 2 basic operations. One, it should be able to detect all the unreachable objects and secondly, it must reclaim the heap space used by the garbage objects and make the space available again to the program. The above operations are performed by Mark and Sweep Algorithm in two phases:

  • Mark phase
  • Sweep phase

About

A generic mark-and-sweep garbage collector


Languages

Language:C# 100.0%