Memory Allocator
First Fit
Best Fit
Buddy System
Size:
4
Malloc
Free Random
Compact
Reset
Memory allocator: heap divided into blocks. First fit: first large-enough hole. Best fit: smallest fitting hole. Buddy: split powers-of-2. Fragmentation shown as gaps.