Garbage collection (computer science)

Channel:
Subscribers:
9,220
Published on ● Video Link: https://www.youtube.com/watch?v=nhhqj7JtqCM



Garbage
Game:
Garbage (2021)
Duration: 0:00
4 views
0


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 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.