Skip to main content

GATE CSE 2024Operating System › Memory Management & Virtual MemoryVerified

GATE CSE 2024 PYQ: ​Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU)…

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

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

Answer

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

Approach

Identify the core hardware duties of the MMU in a paged system: address translation, page-table walk, and hardware checks on valid/present and protection bits. Compare each option against those duties.

The MMU is responsible for address translation (B), checking validity/presence of mappings (C), and enforcing page protection permissions (D). It does not allocate page tables for new processes (A).

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.