CS FundamentalsVery hardGATE CS
A system has 46-bit virtual addresses, 16 KB pages and 4-byte PTEs; each page table must fit in one page. How many levels of page tables are required, and how many bits does the outermost level use?
- A. 3 levels; 8 bits
- B. 3 levels; 12 bits
- C. 2 levels; 12 bits
- D. 4 levels; 2 bits
Correct answer: A. 3 levels; 8 bits
Offset = 14 bits, leaving 32. A 16 KB page holds 4096 entries = 12 bits per level. 32 = 12 + 12 + 8, so 3 levels with the outermost using only 8 bits (a partly filled top table).
More Operating Systems questions
- Segment table (base, length): S0 (219, 600), S1 (2300, 14), S2 (90, 100), S3 (1327, 580), S4 (1952, 96). What are the physical addresses…
- How many times are 'c' and 'p' printed in total? (Every fork() succeeds.) c int main() { for (int i = 0; i < 3; i++) { if (fork() == 0)…
- How many times is each letter printed? (Every fork() succeeds.) c int main() { if (fork() == 0) { if (fork() == 0) printf("A"); else…
- What is the sum of the values printed by all processes? (Every fork() succeeds.) c int main() { int n = 0; for (int i = 0; i < 3; i++) {…
- Disk cylinders 0–199, head at 50 moving TOWARD 0. Requests: 176, 79, 34, 60, 92, 11, 41, 114. What is the total head movement under SCAN…
- Disk cylinders 0–199, head at 50. Requests: 176, 79, 34, 60, 92, 11, 41, 114. Under SSTF, in what order are the requests served?