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

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.

主站蜘蛛池模板: 乐安县| 泰州市| 维西| 中山市| 金川县| 杨浦区| 长汀县| 徐汇区| 阜康市| 泾川县| 大渡口区| 泰和县| 武义县| 运城市| 汨罗市| 垦利县| 阳城县| 巍山| 靖边县| 双桥区| 噶尔县| 承德市| 荥经县| 宜宾县| 卓资县| 荥阳市| 泗阳县| 伊春市| 拜城县| 黔南| 石楼县| 安仁县| 礼泉县| 谢通门县| 德化县| 广灵县| 临泉县| 黑河市| 信丰县| 阜宁县| 阳高县|