Jump to content

Garbage collection (computer science)

From Simple English Wikipedia, the free encyclopedia
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

When a computer program is run, it will use memory, to store certain values. While these values are used, there is a reference to them. When they are no longer used, there are no more references. Clearing the parts of memory which a computer program used, but where there are no more references is called garbage collection.