Question
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 _________
Official answer and solution
- Official answer
- 6596
- From
- Official GATE 2024 answer key
Solution
Divide the virtual address 2500 by the page size (2048 bytes) to extract the virtual page number and page offset, then substitute the mapped frame number.
- Page size in bytes:
- Virtual page number () and offset () for virtual address :
- Physical address:
Virtual page is stored in page frame . Thus:
6596
Using instead of .
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2024 Computer Science and Information Technology - Set 1 (CS1)
- Question
- 62 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.