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

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.

主站蜘蛛池模板: 芦溪县| 淮南市| 三原县| 沿河| 高淳县| 延川县| 黔西县| 龙州县| 和林格尔县| 屏东县| 苍山县| 阿克苏市| 永城市| 布拖县| 麦盖提县| 余庆县| 巴青县| 临汾市| 十堰市| 大英县| 舞钢市| 潮安县| 烟台市| 泰安市| 普陀区| 桦甸市| 张北县| 丹凤县| 南江县| 内黄县| 信阳市| 玉环县| 崇仁县| 阿拉善右旗| 天长市| 武义县| 铁岭市| 大渡口区| 高雄市| 綦江县| 张家港市|