Garbage collection (computer science) facts for kids
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.
Images for kids
-
Stop-and-copy garbage collection in a Lisp architecture: Memory is divided into working and free memory; new objects are allocated in the former. When it is full (depicted), garbage collection is performed: All data structures still in use are located by pointer tracing and copied into consecutive locations in free memory.
See also
In Spanish: Recolector de basura para niños
All content from Kiddle encyclopedia articles (including the article images and facts) can be freely used under Attribution-ShareAlike license, unless stated otherwise. Cite this article:
Garbage collection (computer science) Facts for Kids. Kiddle Encyclopedia.