CS FundamentalsHardProduct company interview · GATE level
A process uses paging with a page size of 4096 bytes (4 KB). Virtual address 269026 (decimal, byte address) maps to page number 65 with offset 2786, and the page table entry for page 65 holds frame number 3. What is the resulting physical address?
- A. 12353
- B. 269026
- C. 19170
- D. 15074
Correct answer: D. 15074
Physical address = frame number × page size + offset = 3 × 4096 + 2786 = 15074. Using the page number instead of the frame number (269026), or adding the page number as if it were part of the offset (12353), are the classic mix-ups here.
More Operating Systems questions
- A process uses paging with a page size of 1024 bytes (1 KB). Virtual address 79723 (decimal, byte address) maps to page number 77 with…
- A process uses paging with a page size of 2048 bytes (2 KB). Virtual address 210932 (decimal, byte address) maps to page number 102 with…
- A process uses paging with a page size of 4096 bytes (4 KB). Virtual address 153725 (decimal, byte address) maps to page number 37 with…
- A process uses paging with a page size of 1024 bytes (1 KB). Virtual address 19718 (decimal, byte address) maps to page number 19 with…
- A system increases its degree of multiprogramming to improve CPU utilisation, but utilisation instead drops sharply as more processes are…
- A TLB has a hit ratio of 90%. A TLB access takes 10 ns and a main-memory access takes 100 ns. On a TLB hit, the data is fetched directly…