- Mastering High Performance with Kotlin
- Igor Kucherenko
- 165字
- 2021-06-25 20:55:21
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.
- 潮流:UI設計必修課
- Java面向對象軟件開發
- Mastering Objectoriented Python
- 云計算通俗講義(第3版)
- 名師講壇:Spring實戰開發(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- Learning Salesforce Einstein
- Tableau 10 Bootcamp
- 西門子S7-200 SMART PLC編程從入門到實踐
- “笨辦法”學C語言
- Internet of Things with ESP8266
- Java圖像處理:基于OpenCV與JVM
- 移動增值應用開發技術導論
- Serverless Web Applications with React and Firebase
- 計算機應用技能實訓教程
- Java Hibernate Cookbook