






































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of dynamic memory allocation in operating systems, focusing on the management of the heap. Topics covered include the stack, heap, brk and sbrk functions, and the implementation of a simple malloc function. The document also discusses the goals of dynamic memory allocation, such as maximizing throughput and heap utilization, and the comparison between explicit memory management and garbage collection.
Typology: Study notes
1 / 46
This page cannot be seen from the preview
Don't miss anything!







































Disk Virtual Memory 0 0xFFFFFFFF
Physical Memory
Static data
The Stack
The Heap
The Heap
void *hp = sbrk( N );
N
(really) naive malloc
free?
must support allocation & deallocation
User Process Disk RAM dynamic memory allocator sbrk Heap application program malloc OS kernel
basic issues:
API?
explicit memory management
vs. garbage collection (implicit mem management)