Deepin Linux
Dec 6, 2023 · Fundamentals
Dynamic Memory Allocation, malloc/free, new/delete, and Linux Memory Management Overview
This article explains the principles and usage of dynamic memory allocation in C/C++ (malloc, calloc, realloc, free, new, delete), compares their behaviors, demonstrates common pitfalls, and extends the discussion to Linux kernel memory statistics, cache handling, swappiness tuning, and garbage‑collection concepts.
CGarbage CollectionMemory Allocation
0 likes · 31 min read