5.6 Exercises

  1. 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 to sbrk and after the call to sbrk. How much space has the kernel allocated? What does the PTE for the new memory contain?

  2. 2.

    Implement COW fork.

  3. 3.

    Implement mmap.