Garbage collection (computer science)
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.]
In computer science, garbage collection (GC) is a form of automatic memory management. The garbage collector attempts to reclaim memory that was allocated by the program, but is no longer referenced; such memory is called garbage. Garbage collection was invented by American computer scientist John McCarthy around 1959 to simplify manual memory management in Lisp.
Garbage collection relieves the programmer from doing manual memory management, where the programmer specifies what objects to de-allocate and return to the memory system and when to do so. Other, similar techniques include stack allocation, region inference, and memory ownership, and combinations thereof. Garbage collection may take a significant proportion of a program's total processing time, and affect performance as a result.
Resources other than memory, such as network sockets, database handles, windows, file descriptors, and device descriptors, are not typically handled by garbage collection, but rather by other methods (e.g. destructors). Some such methods de-allocate memory also.
Source: https://en.wikipedia.org/wiki/Garbage_collection_(computer_science)
Created with WikipediaReaderSentry (c) WikipediaReader
Images and videos sourced from Pexels (https://www.pexels.com/)
Other Videos By WikiReader
2025-07-02 | Lophospermum erubescens |
2025-07-01 | Anthony Steen |
2025-07-01 | Leclanché cell |
2025-07-01 | Magnae Carvetiorum |
2025-06-30 | Briarcliffe Acres, South Carolina |
2025-06-30 | Dmitry Kabalevsky |
2025-06-30 | Lola Edwards |
2025-06-30 | William Shatner |
2025-06-30 | Visa requirements for Swedish citizens |
2025-06-29 | Adam's Curse |
2025-06-29 | Garbage collection (computer science) |
2025-06-29 | Saturday Night (1922 film) |
2025-06-29 | Liberal Movement (Australia) |
2025-06-29 | Mansions of Madness |
2025-06-28 | Turan |
2025-06-28 | Efraím Basílio Krevey |
2025-06-28 | SCOOT (bus service) |
2025-06-28 | Bradford Washburn |
2025-06-28 | Telecommunications in Western Sahara |
2025-06-28 | Skeleton Crew (short story collection) |
2025-06-26 | Eye care in the United Kingdom |
Other Statistics
Garbage Statistics For WikiReader
At this time, WikiReader has 23 views for Garbage spread across 2 videos. His channel published less than an hour of Garbage content, less than 0.01% of the total video content that WikiReader has uploaded to YouTube.