Memory Management questions

Q62

GATE CS 2024 CS-1Memory ManagementNAT2 marks
Consider a memory management system that uses a page size of 2 KB. Assume that both the physical and virtual addresses start from 0. Assume that the pages 0, 1, 2, and 3 are stored in the page frames 1, 3, 2, and 0, respectively. The physical address (in decimal format) corresponding to the virtual address 2500 (in decimal format) is _________
Show answer without attempting

Answer: 6596

Q24

GATE CS 2024 CS-2Memory ManagementMSQ1 mark
Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU) in a system with paging-based memory management?
More than one option can be correct.
Show answer without attempting

Answer: B, C, D

Q64

GATE CS 2024 CS-2Memory ManagementNAT2 marks
Consider a 32-bit system with 4 KB page size and page table entries of size 4 bytes each. Assume 1 KB=2101 \text{ KB} = 2^{10} bytes. The OS uses a 2-level page table for memory management, with the page table containing an outer page directory and an inner page table. The OS allocates a page for the outer page directory upon process creation. The OS uses demand paging when allocating memory for the inner page table, i.e., a page of the inner page table is allocated only if it contains at least one valid page table entry.

An active process in this system accesses 2000 unique pages during its execution, and none of the pages are swapped out to disk. After it completes the page accesses, let XX denote the minimum and YY denote the maximum number of pages across the two levels of the page table of the process.

The value of X+YX+Y is ________
Show answer without attempting

Answer: 1028

0/30 correct0 marks

Related topics in Operating Systems