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

Memory management

Memory is one of the essential resources of a computer, and it's essential to manage it properly. Failure to do so can lead to slow performance and bugs such as arithmetic overflow, memory leaks, segmentation faults, and buffer overflows.

The primary purpose of a memory management system is to provide the ability to dynamically allocate the requested size of memory to programs and to release it for reuse when no longer needed. These systems perform management on two levels:

  • Operating-system level
  • Application level

We'll concentrate on the application level because it's the responsibility of an application software developer. The operating-system level is managed with an operating system.

There are two types of application-level management systems:

  • Automatic memory management
  • Manual memory management

Manual memory management assumes that the programmer uses manual instructions to release unused garbage. It's relevant to languages (still in wide use today) such as C and C++. The JVM has automatic memory management that involves the garbage collection.

主站蜘蛛池模板: 丽江市| 美姑县| 敖汉旗| 江山市| 五华县| 晋州市| 广德县| 弋阳县| 乌拉特前旗| 玉溪市| 麻城市| 巴东县| 如皋市| 咸阳市| 屏山县| 静安区| 奉新县| 固镇县| 贡嘎县| 孟村| 茶陵县| 石泉县| 页游| 法库县| 文山县| 和平区| 宜兰市| 九台市| 玛纳斯县| 广元市| 麻江县| 泰宁县| 田阳县| 齐河县| 普宁市| 察哈| 紫金县| 横峰县| 岑巩县| 新乡县| 沛县|