Jump to content

Garbage collection (computer science)

From Simple English Wikipedia, the free encyclopedia
Revision as of 11:53, 17 June 2025 by ThisUserIsAStub (talk | changes) (remove double space, add stub template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.