The GATE Grind

GATE 2024 CS (CS2) – Question 24

Operating System · Memory Management and Virtual Memory · 1 mark · Multiple select

Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU) in a system with paging-based memory management?

  1. Allocate a new page table for a newly created process
  2. Translate a virtual address to a physical address using the page table
  3. Raise a trap when a virtual address is not found in the page table
  4. Raise a trap when a process tries to write to a page marked with read-only permission in the page table

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (B) Translate a virtual address to a physical address using the page table; (C) Raise a trap when a virtual address is not found in the page table; (D) Raise a trap when a process tries to write to a page marked with read-only permission in the page table

Explanation

The MMU hardware performs translation and raises traps for invalid or protection-violating accesses. Allocating page tables is done by the OS.