- 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.
- C++案例趣學(xué)
- LabVIEW Graphical Programming Cookbook
- Mastering ServiceStack
- Unity Virtual Reality Projects
- 你必須知道的204個(gè)Visual C++開(kāi)發(fā)問(wèn)題
- Building Cross-Platform Desktop Applications with Electron
- Android 應(yīng)用案例開(kāi)發(fā)大全(第3版)
- 微信小程序開(kāi)發(fā)解析
- 持續(xù)輕量級(jí)Java EE開(kāi)發(fā):編寫(xiě)可測(cè)試的代碼
- Scratch·愛(ài)編程的藝術(shù)家
- 玩轉(zhuǎn).NET Micro Framework移植:基于STM32F10x處理器
- 邊玩邊學(xué)Scratch3.0少兒趣味編程
- 超好玩的Scratch 3.5少兒編程
- Java EE互聯(lián)網(wǎng)輕量級(jí)框架整合開(kāi)發(fā):SSM+Redis+Spring微服務(wù)(上下冊(cè))
- Python編程基礎(chǔ)與數(shù)據(jù)分析