Consider a memory management system that uses a page size of . 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 ___________.
GATE CSE 2024Operating System › Memory Management & Virtual MemoryVerified
GATE CSE 2024 PYQ: Consider a memory management system that uses a page size of 2 K B 2 \mathrm{~KB} 2 KB . Assume that both…
Answer
6596
Approach
Convert the virtual address to a page number and offset using the page size, map the virtual page to its physical frame using the given page-to-frame mapping, then compute the physical address as $frame_number$ × $page_size +$ offset.
The virtual address 2500 lies in virtual page 1, which maps to frame 3. Thus the physical address is frame 3 base (6144) plus the offset 452, giving 6596. All provided community answers agree with this result.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.