GATE / CS ARCHIVE

GATE CSE 2024 SET 2 / QUESTION 24

Hardware translation versus OS allocation

Operating Systems · Virtual Memory & Paging · Full GATE CSE 2024 Set 2 paper

GATE 2024 Set 2, Q24 1 mark · MSQ
Report issue

Virtual Memory & Paging

Question 24, GATE 2024: Which are MMU responsibilities in a paging system? A allocate a new process’s page table; B translate virtual to physical addresses with the page table; C trap on a missing/invalid page-table mapping; D trap on a write to a read-only page.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, C, D

Approach: Separate fast hardware checks from policy and resource management performed by the operating system.

1. Derivation. The OS allocates a new process’s page-table structures, so A is not an MMU duty. The MMU uses the mappings to translate addresses, detects absent/invalid mappings and raises page-fault exceptions, and checks permissions such as write protection. Thus B, C, D. A TLB miss alone is not the same as a page being absent from the page table.

2. Explanation and checks. The MMU interprets the mapping and protection information supplied by the OS. For a valid writable mapping it can complete a write translation; for a nonpresent page or forbidden write it transfers control through an exception so the OS can decide what to do. Creating the table and allocating its memory belong to OS management. A TLB cache miss may be resolved by a page-table walk without any missing mapping or page-in operation.

Original paper, page 17 · Answer key