Home CS439

CS439: Principles of Computer Systems

Discussion Section 6 Problem Set Solutions

Due in Section on Friday, October 17, 2025

The problem set must be completed before section and brought to section. To ensure that your problem set is turned in correctly and that you receive credit for discussion section, you must follow these guidelines exactly.
  1. What causes a page fault? What is the end result for the running process?

  2. What causes a memory exception? What is the end result for the running process?

  3. Pages have (at least) the following three bits associated with them: the resident bit, the clock/reference bit, and the dirty bit. Describe each bit and its use.

  4. What is the difference between global and local page replacement policies? Name a disadvantage of each.

  5. Name two advantages of using small pages and two advantages of using large pages in a paging mechanism. Why are page sizes growing in paging memory systems?

  6. Consider a program with seven virtual pages numbered from 0 to 6 references its pages in the order:

    0 1 3 6 2 4 5 2 5 0 3 1 2 5 4 1 0

    Using clock page replacement algorithm with 4 frames and assuming demand paging, compute the number of page faults and show the state of frames (pages in frames and value of clock bit) after each page access.