Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU) in a system with paging-based memory management?
Allocate a new page table for a newly created process
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
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.
More Memory Management and Virtual Memory questions
GATE 2024 CS (CS2) Q64– Consider a 32-bit system with 4 KB page size and page table entries of size 4 bytes each…
GATE 2023 CS Q57– Consider the following two-dimensional array D in the C programming language, which is…
GATE 2023 CS Q58– Consider a computer system with 57-bit virtual addressing using multi-level…
GATE 2022 CS Q38– Which one of the following statements is FALSE?
GATE 2022 CS Q64– Consider a demand paging system with four page frames (initially empty) and LRU page…
GATE 2021 CS (CS1) Q21– In the context of operating systems, which of the following statements is/are correct with…