CS FundamentalsHardGATE CS
A machine has 36-bit virtual addresses, 8 KB pages and 4-byte page-table entries. A two-level page table is used in which the inner page tables each occupy exactly one page. How many bits index the outer page table?
- A. 11
- B. 12
- C. 23
- D. 25
Correct answer: B. 12
Offset = 13 bits (8 KB). One 8 KB page holds 2048 = 2¹¹ four-byte entries, so the inner index is 11 bits and the outer index is 36 − 13 − 11 = 12. 11 is the inner index, 23 the single-level page number, and 25 forgets to remove the offset.
More Operating Systems questions
- A system has 32-bit virtual addresses, 1 GB of physical memory, 4 KB pages, and each page-table entry holds the frame number plus a valid…
- 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…
- 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…