The GATE Grind

GATE 2024 CS (CS1) – Question 62

Operating System · Memory Management and Virtual Memory · 2 marks · Numerical answer

Consider a memory management system that uses a page size of 2 KB. Assume that both the physical and virtual addresses start from 0. Pages 0, 1, 2, and 3 are stored in page frames 1, 3, 2, and 0, respectively. The physical address (in decimal format) corresponding to the virtual address 2500 (in decimal format) is _________

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 6596

Explanation

2500 = 1×2048 + 452, so page 1, offset 452. Page 1 maps to frame 3: 3×2048 + 452 = 6144 + 452 = 6596.