CS FundamentalsModerateGATE CS · Amazon/Microsoft SDE MCQ
A TLB has 64 entries. What is its reach with 4 KB pages, and with 2 MB huge pages?
- A. 256 KB and 128 MB
- B. 64 KB and 128 MB
- C. 256 KB and 64 MB
- D. 4 MB and 128 MB
Correct answer: A. 256 KB and 128 MB
TLB reach = entries × page size: 64 × 4 KB = 256 KB, and 64 × 2 MB = 128 MB. Huge pages raise reach without enlarging the TLB.
More Operating Systems questions
- A 32-bit system uses two-level paging with 4 KB pages and 4-byte entries (a 1024-entry outer table, each inner table mapping 4 MB). A…
- A disk spins at 7200 RPM, has 400 sectors of 512 bytes per track and an average seek of 5 ms. About how long does it take on average to…
- Processes typically run 40 ms of CPU before blocking for I/O. Round Robin uses a quantum of 8 ms and each context switch costs 2 ms. What…
- Three users run the same 60 KB editor (pure, reentrant code) and each has 20 KB of private data. With paging that lets the code pages be…
- In a monitor with Mesa (signal-and-continue) semantics, why must a consumer write while (count == 0) wait(notEmpty); instead of if (count…
- In the first readers-writers solution (readers share a count; the first reader locks out writers and the last reader lets them in), what…