Tagged articles
2 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Sep 2, 2025 · Fundamentals

Unlocking Efficient Software: How Memory Management Powers Modern Computing

This article explores the fundamentals of memory management, covering static and dynamic allocation, virtual memory, paging, segmentation, protection mechanisms, garbage collection, common strategies, pitfalls like leaks and fragmentation, concurrency challenges, and practical tips and tools for optimizing memory usage across operating systems and applications.

PagingSegmentationVirtual Memory
0 likes · 40 min read
Unlocking Efficient Software: How Memory Management Powers Modern Computing
Liangxu Linux
Liangxu Linux
Apr 2, 2025 · Fundamentals

How Does malloc Actually Work? Inside a Simple Memory Allocator

This article explains why dynamic memory allocation is essential, models the heap as a parking lot, outlines the core challenges of implementing malloc and free, describes block headers, explores First Fit, Next Fit, and Best Fit strategies, and details splitting, internal fragmentation, and efficient coalescing using footers.

Systems Programmingallocation strategiesfragmentation
0 likes · 17 min read
How Does malloc Actually Work? Inside a Simple Memory Allocator