CS FundamentalsVery hardGATE CS
A 32-bit system uses 2-level paging (10 + 10 + 12 bits, 4-byte PTEs, so every table is one 4 KB page). A process touches one byte in each of 600 pages, spread so that no two of them fall under the same inner page table. How much memory do its page tables use?
- A. 2,400 KB
- B. 2,404 KB
- C. 4,100 KB
- D. 8 KB
Correct answer: B. 2,404 KB
Each touched page needs its own inner table: 600 inner tables plus the single outer table = 601 pages × 4 KB = 2,404 KB. Had all 600 pages been contiguous, 1 inner table (it maps 1024 pages) + 1 outer = 8 KB would suffice: sparsity, not size, drives page-table cost.
More Operating Systems questions
- Disk with 100 cylinders (0–99); head at 50 moving up. Requests arrive in two batches: first 30, 70, 90; when the head reaches 70, new…
- A system has 3 identical printers. Processes P1, P2, P3 hold 1 printer each and each needs exactly 2 to finish; requests are made one at a…
- A program alternately computes for 20 ms and does disk I/O for 80 ms. With 4 such independent programs and the 1 − pⁿ model, what CPU…
- In a system with paging, a process's logical address space is 64 pages of 1 KB and physical memory is 32 frames. How many bits are in the…
- An 8 MB file uses linked indexed allocation: each 4 KB index block holds 1024 four-byte pointers, of which the last is reserved as the…
- Processes (arrival, burst) are P1 (0, 8), P2 (1, 4), P3 (2, 9), P4 (3, 5) and P5 (6, 2). What is the average waiting time under preemptive…