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

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.

主站蜘蛛池模板: 蚌埠市| 定西市| 保定市| 贵港市| 临桂县| 潜江市| 云和县| 介休市| 凯里市| 从化市| 汤原县| 策勒县| 辰溪县| 庆安县| 玛纳斯县| 岑巩县| 南平市| 嵩明县| 平阳县| 泾阳县| 镇江市| 新化县| 梅州市| 九龙城区| 福安市| 清远市| 台东县| 枞阳县| 长泰县| 嵊泗县| 青龙| 崇明县| 镇赉县| 大港区| 武安市| 垣曲县| 教育| 广德县| 乌兰浩特市| 三亚市| 合山市|