GATE CS 2024 Set 2 — Question 24
MSQ+1 / -0MediumPaging & Address TranslationMemory ManagementOperating System
Operating System → Memory Management → Paging & Address Translation
Last updated
Question
Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU) in a system with paging-based memory management?
A.
Allocate a new page table for a newly created process
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
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
Solution
The Memory Management Unit (MMU) is a hardware component responsible for handling memory accesses requested by the CPU.(A) False: Allocating a new page table is a memory management task performed by the Operating System kernel when a process is created. The MMU uses the page table but does not create/allocate it.
(B) True: The primary function of the MMU is to translate virtual addresses to physical addresses at runtime using the page table (and TLB).
(C) True: If a translation is not present (valid bit is 0) in the page table (or TLB), the MMU raises a hardware exception (trap), commonly known as a page fault, so the OS can handle it.
(D) True: The MMU checks access permissions (Read/Write/Execute bits) present in the page table entries. If a process attempts an operation that violates these permissions (e.g., writing to a read-only page), the MMU raises a protection fault/trap.
(B) True: The primary function of the MMU is to translate virtual addresses to physical addresses at runtime using the page table (and TLB).
(C) True: If a translation is not present (valid bit is 0) in the page table (or TLB), the MMU raises a hardware exception (trap), commonly known as a page fault, so the OS can handle it.
(D) True: The MMU checks access permissions (Read/Write/Execute bits) present in the page table entries. If a process attempts an operation that violates these permissions (e.g., writing to a read-only page), the MMU raises a protection fault/trap.
More questions on Memory Management
2024 Set 1 Q24Which of the following statements about threads is/are TRUE?2024 Set 2 Q25Consider a process P running on a CPU. Which one or more of the following events will always…2024 Set 1 Q25Which of the following process state transitions is/are NOT possible?2024 Set 2 Q37Consider a single processor system with four processes A, B, C, and D, represented as given below,…2024 Set 1 Q40Consider the following two threads T1 and T2 that update two shared variables a and b. Assume that…
Practice GATE CS PYQs with adaptive difficulty
Timed practice, skill tracking, and AI explanations — free to start.
Start practicing free