garbage collection
garbage collection
Noun | 1. | garbage collection - the collection and removal of garbage |
单词 | garbage collection | |||
释义 | garbage collectiongarbage collection
garbage collectiongarbage collection[′gär·bij kə‚lek·shən]garbage collection(programming)Automatic garbage collection is usually triggered duringmemory allocation when the amount free memory falls below somethreshold or after a certain number of allocations. Normalexecution is suspended and the garbage collector is run.There are many variations on this basic scheme. Languages like Lisp represent expressions as graphs builtfrom cells which contain pointers and data. These languagesuse automatic dynamic storage allocation to buildexpressions. During the evaluation of an expression it isnecessary to reclaim space which is used by subexpressions butwhich is no longer pointed to by anything. This reclaimedmemory is returned to the free memory pool for subsequentreallocation. Without garbage collection the program's memory requirementswould increase monotonically throughout execution, possiblyexceeding system limits on virtual memory size. The three main methods are mark-sweep garbage collection,reference counting and copying garbage collection. See also the AI koan about garbage collection. garbage collection(1) Garbage collection is a function of an operating system or programming language that reclaims memory no longer in use. For example, Java and .NET have built-in garbage collection, but C and C++ do not, and programmers have to write the code to allocate and deallocate, which is tedious and error prone. See dynamic memory allocation and memory allocation.(2) In a flash memory-based solid state drive (SSD), the garbage collection function improves write speed by erasing blocks of unused storage in the background. Flash memory requires blocks to be erased before they can be written, and having empty blocks available saves time when writing new data on the drive. See TRIM support, flash memory and SSD. garbage collection
Synonyms for garbage collection
|
|||
随便看 |
|
英语词典包含2567994条英英释义在线翻译词条,基本涵盖了全部常用单词的英英翻译及用法,是英语学习的有利工具。