5.6 Exercises
-
1.
Write a user program that grows its address space by one byte by calling
sbrk(1). Run the program and investigate the page table for the program before the call tosbrkand after the call tosbrk. How much space has the kernel allocated? What does the PTE for the new memory contain? -
2.
Implement COW fork.
-
3.
Implement mmap.