CS FundamentalsHardGATE CS
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 4-byte PTEs. What is the maximum size of one segment's page table?
- A. 4 MB
- B. 64 KB
- C. 256 KB
- D. 1 MB
Correct answer: C. 256 KB
Offset within a segment = 32 − 4 = 28 bits, so a segment has up to 2²⁸ / 2¹² = 2¹⁶ pages; 2¹⁶ × 4 B = 256 KB. The 4 MB trap ignores the segment bits.
More Operating Systems questions
- A machine has 2 GB of physical memory with 8 KB frames, uses 48-bit virtual addresses, and an inverted page table with 16-byte entries…
- Reference string (times 1 to 20): 2, 6, 1, 5, 7, 7, 7, 7, 5, 1, 6, 2, 3, 4, 1, 2, 3, 4, 4, 4. With window Δ = 5, what is the working-set…
- A system's CPU utilisation is 12% while the paging disk is 98% busy. Which action is most likely to INCREASE CPU utilisation?
- TLB lookup 10 ns, memory access 100 ns, single-level page table, TLB hit ratio 90%. One in a million accesses causes a page fault…
- A system has 62 free frames shared by two processes of sizes 10 pages and 127 pages, allocated proportionally to size (rounded down). How…
- A buddy system manages 512 KB, initially one free block. Requests arrive: A = 70 KB, B = 35 KB, C = 80 KB, then A is freed, then D = 60…