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

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.

主站蜘蛛池模板: 思南县| 鄂托克旗| 盘山县| 甘南县| 江山市| 河东区| 文昌市| 海门市| 冷水江市| 清河县| 六枝特区| 东兰县| 教育| 兖州市| 周至县| 集贤县| 宜丰县| 稻城县| 申扎县| 张掖市| 香港 | 通山县| 靖州| 岱山县| 仲巴县| 施甸县| 宝丰县| 松溪县| 石景山区| 壤塘县| 舞阳县| 哈尔滨市| 屯昌县| 石楼县| 建昌县| 论坛| 洱源县| 怀宁县| 溆浦县| 永靖县| 永平县|