Underlying OS Support
Explore how underlying operating system support manages memory allocation through system calls such as brk, sbrk, and mmap. Understand the relationship between malloc library calls and OS system calls to efficiently allocate and manage virtual memory regions within programs.
We'll cover the following...
We'll cover the following...
You might have noticed that we haven’t been talking about system calls when discussing malloc() and free(). The reason for this is simple: they are not system calls, but rather library calls. Thus the malloc library manages space within your virtual address space, but itself is built on top of some system calls which call into ...