![]() ![]() Please help improve this article by adding citations to reliable sources in this section. This section needs additional citations for verification. Some such methods de-allocate memory also. 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. Garbage collection may take a significant proportion of a program's total processing time, and affect performance as a result. ![]() Other, similar techniques include stack allocation, region inference, and memory ownership, and combinations thereof. 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. Garbage collection was invented by American computer scientist John McCarthy around 1959 to simplify manual memory management in Lisp. The garbage collector attempts to reclaim memory which was allocated by the program, but is no longer referenced such memory is called garbage. In computer science, garbage collection ( GC) is a form of automatic memory management. After that, the working memory contents is discarded in favor of the compressed copy, and the role of working and free memory are exchanged (depicted).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |