Which of the following tasks is/are the responsibility/responsibilities of the memory management unit in a system with paging-based memory management?
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)…
- AAllocate a new page table for a newly created process
- BTranslate a virtual address to a physical address using the page tableCorrect answer
- CRaise a trap when a virtual address is not found in the page tableCorrect answer
- DRaise a trap when a process tries to write to a page marked with read-only permission in the page tableCorrect 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.