CS FundamentalsHardGATE CS
A system has 48-bit virtual addresses, 8 KB pages and 16 GB of physical memory. An inverted page table has one entry per frame, holding a 16-bit process id, the virtual page number, 8 bits of flags and a hash-chain pointer wide enough to name any frame. Entries are packed to a whole number of bytes. What is the table size?
- A. 16 MB
- B. 24 MB
- C. 20 MB
- D. 40 MB
Correct answer: C. 20 MB
Frames = 2³⁴/2¹³ = 2²¹, so the chain pointer takes 21 bits. VPN = 48−13 = 35 bits. Entry = 16+35+8+21 = 80 bits = 10 bytes. Table = 2²¹ × 10 B = 20 MB.
More Operating Systems questions
- A FAT file system on a 2 TB partition uses 8 KB blocks. Each FAT entry holds a block number plus 4 control bits and entries are rounded up…
- A Unix-style inode has 10 direct pointers and one single, one double and one triple indirect pointer. Blocks are 2 KB and pointers are 4…
- A 32-bit machine uses two-level paging with 4 KB pages and 4-byte entries (10+10+12 split). A process has 6 MB of code and data starting…
- A machine has 46-bit virtual addresses, 16 KB pages, 40-bit physical addresses, and each page-table entry holds the frame number plus 6…
- A parent has 1000 pages mapped copy-on-write after fork, all initially shared. The child then writes to 100 distinct pages, and afterwards…
- A bounded-buffer monitor with Mesa-style signalling uses: get() { if (count == 0) wait(notEmpty); item = buf[out]; count--; ... } and…