Home CS439

CS439: Principles of Computer Systems

Discussion Section 5 Problem Set

Due in Section on Friday, February 28, 2024

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 is a virtual address? What is a physical address? How do they relate to each other?

  2. What causes a page fault? What is the end result for the running process?

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

  4. Assume you have a virtual memory system that uses paging. Is the system vulnerable to internal and/or external fragmentation? Explain.

  5. In class, we discussed that paging may increase internal fragmentation. What is internal fragmentation? What steps could you take to reduce it?

  6. Consider a paging system with 16 pages and a page size of 1024 bytes. The system has 32 frames of physical memory.

    1. How many bits are in a physical address?
    2. How many bits represent the page number?
    3. How many bits are in the complete virtual address?
    4. What size are the page frames?