CS FundamentalsHardIBM · Deloitte pattern
An inverted page table has one entry per physical frame (not per virtual page), shared across all processes, each entry tagged with the owning process id. What is the main benefit, and the main cost, compared to a per-process page table?
- A. Benefit: eliminates page faults; cost: higher memory usage
- B. Benefit: much smaller total table size (proportional to physical memory, not virtual address space × number of processes); cost: a lookup normally needs an associative/hashed search instead of a direct index
- C. Benefit: faster direct indexing by virtual page number; cost: larger total size
- D. Benefit: no TLB is needed at all; cost: it cannot support multiple processes
Correct answer: B. Benefit: much smaller total table size (proportional to physical memory, not virtual address space × number of processes); cost: a lookup normally needs an associative/hashed search instead of a direct index
Since the table size depends on physical frames rather than virtual pages × processes, inverted tables save huge amounts of memory for large address spaces, but translating a virtual address now requires searching (often via a hash table) for a matching (pid, page) entry rather than simple indexing by page number.
More Operating Systems questions
- Belady's anomaly refers to the surprising fact that:
- The convoy effect in FCFS scheduling describes a situation where:
- In preemptive SRTF, a running process can be interrupted the instant a newly arrived process has a strictly smaller remaining burst. Why…
- Which statement about multilevel feedback queue (MLFQ) scheduling is correct?
- A disk has an average seek time of 4 ms, rotational latency (average) of 3 ms, and a transfer rate that takes 1 ms per 4 KB block. What is…
- A disk rotates at 6000 RPM. What is the average rotational latency (time for half a rotation)?