官术网_书友最值得收藏!

Garbage collection

Garbage collection is a strategy for automatically detecting memory allocated to objects that are no longer usable in a program and returning that allocated memory to the pool of free memory locations. All memory management techniques, including garbage collection, take a significant proportion of a program's total processing time and, as a result, can greatly influence performance. With modern, optimized garbage collection algorithms, memory can be released faster than with manual memory management. But depending on the application, the opposite can also be true, and many developers prefer to deallocate memory themselves. One of the biggest advantages that manual memory management has is the ability to reclaim resources before an object is destroyed. This process is referred to as finalization, and we'll touch on it further because it can also be a performance issue.

Memory management is an essential process that's applied to the computer memory. Since the JVM uses automatic memory management with the garbage collection strategy we should know what it is and how it works.

主站蜘蛛池模板: 湛江市| 全椒县| 武功县| 汕尾市| 陵川县| 民县| 普兰县| 开原市| 团风县| 深水埗区| 哈巴河县| 皮山县| 宁国市| 托里县| 内乡县| 墨脱县| 徐州市| 嵊泗县| 牙克石市| 麻城市| 会理县| 定陶县| 永和县| 黎平县| 西乌| 崇明县| 灵璧县| 宿松县| 三河市| 彝良县| 浙江省| 江都市| 杨浦区| 建德市| 延寿县| 娱乐| 保定市| 安图县| 托克托县| 宁海县| 临桂县|