Consider a memory management system that uses a page size of 2 KB. Assume that…
2024
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 ____________ .
Attempted by 110 students.
Show answer & explanation
Correct answer: 6596
Solution: Step-by-step calculation to get the physical address.
Page size = 2 KB = 2048 bytes.
Virtual address = 2500. Page number = floor(2500 / 2048) = 1. Offset = 2500 − 1 × 2048 = 452.
Virtual page 1 is stored in physical frame 3 (mapping given: virtual pages 0, 1, 2, 3 → frames 1, 3, 2, 0).
Physical address = frame_number × page_size + offset = 3 × 2048 + 452 = 6144 + 452 = 6596.
Physical address (decimal): 6596
A video solution is available for this question — log in and enroll to watch it.