CS FundamentalsModerateGATE CS
Page size is 2 KB. The page table maps page 0 → frame 6, page 1 → frame 2, page 2 → frame 9, page 3 → frame 4. What physical address does logical address 5000 map to?
- A. 13192
- B. 19336
- C. 9096
- D. 5000
Correct answer: B. 19336
5000 = 2×2048 + 904, so page 2, offset 904. Page 2 is in frame 9, giving 9×2048 + 904 = 19336. Picking frame 6 or frame 4 (wrong row) gives 13192 or 9096.
More Operating Systems questions
- A process's size is uniformly distributed and much larger than the page size P. On average, how much memory per process is lost to…
- Average process size s = 1 MB and each page-table entry is e = 8 bytes. Using the classic overhead model s·e/p + p/2 (page-table space…
- int A[128][128] (4-byte ints) is stored row-major in pages of 512 bytes; the array starts on a page boundary and the process has only 2…
- Same array int A[128][128], one row per 512-byte page, 2 frames (LRU), but the loop is for i in 0..127: for j in 0..127: A[i][j] = 0;. How…
- A TLB has 128 entries and pages are 4 KB. A process's working set is 2 MB and is accessed uniformly at random. Approximately what fraction…
- A system uses segmentation with paging: a 32-bit logical address has a 4-bit segment number, and each segment is paged with 4 KB pages and…