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

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.

主站蜘蛛池模板: 神农架林区| 繁峙县| 鹰潭市| 普格县| 翁源县| 麦盖提县| 乳山市| 金乡县| 乌拉特前旗| 凤阳县| 姜堰市| 彰武县| 大化| 南充市| 潮安县| 江西省| 晋城| 若羌县| 沅陵县| 东丰县| 姜堰市| 平乐县| 廊坊市| 密山市| 博罗县| 呼图壁县| 集贤县| 醴陵市| 泌阳县| 册亨县| 融水| 赤峰市| 沭阳县| 新巴尔虎右旗| 长乐市| 夏津县| 桓台县| 石城县| 昌平区| 昌江| 都江堰市|