- 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.
- ASP.NET Core:Cloud-ready,Enterprise Web Application Development
- Learning Data Mining with Python
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優(yōu)化計(jì)算
- 用Flutter極速構(gòu)建原生應(yīng)用
- Learning AndEngine
- Machine Learning in Java
- Test-Driven Development with Django
- Image Processing with ImageJ
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)(第二版)
- Elasticsearch Blueprints
- 用Python動(dòng)手學(xué)統(tǒng)計(jì)學(xué)
- Java Web動(dòng)態(tài)網(wǎng)站開發(fā)(第2版·微課版)
- Getting Started with the Lazarus IDE
- 數(shù)據(jù)庫(kù)基礎(chǔ)與應(yīng)用實(shí)驗(yàn)教程:Visual FoxPro 6.0
- CorelDRAW X6中文版應(yīng)用教程(第二版)