CS FundamentalsVery hardGATE CS
A process's address space uses three-level paging with 9 bits per level and 4 KB pages (8-byte entries, so each table is one 4 KB page). It touches one page at virtual address 0 and one page at the very top of its 39-bit space. How many page-table pages exist?
- A. 3
- B. 6
- C. 4
- D. 5
Correct answer: D. 5
There is one top-level table. The two addresses differ in their top-level index, so each needs its own second-level table and its own third-level table: 1 + 2 + 2 = 5 pages.
More Operating Systems questions
- A CPU-bound process and an I/O-bound process share a single CPU under a multilevel feedback queue with priority boosting. What is the…
- Two processes each need two printers, and the system has exactly 3 printers; each requests its printers one at a time and holds them until…
- A file system uses 4 KB blocks. A file of 10,001 bytes is stored. How much space is lost to internal fragmentation in its last block?
- Statement 1: A context switch between two threads of the same process need not flush the TLB. Statement 2: A context switch between two…
- A process's page table has valid entries for pages 0-5 only. With 1 KB pages, which logical address causes a trap instead of a translation?
- A machine has 46-bit virtual addresses, 16 KB pages and 4-byte page-table entries. Lower page-table levels are full 16 KB pages; the top…