CS FundamentalsHardProduct-company MCQ pattern
A system increases its degree of multiprogramming to improve CPU utilisation, but utilisation instead drops sharply as more processes are added past a certain point. What does this describe, and what is the usual fix?
- A. Starvation; fixed by aging processes' priority
- B. Thrashing; fixed by reducing the degree of multiprogramming or giving processes more frames (e.g. via the working-set model)
- C. External fragmentation; fixed by compaction
- D. A context-switch storm; fixed by increasing the time quantum only
Correct answer: B. Thrashing; fixed by reducing the degree of multiprogramming or giving processes more frames (e.g. via the working-set model)
This is the classic thrashing curve: beyond the knee, each new process steals frames from others' working sets, faults rise, and real CPU work falls. The standard OS response is to suspend some processes (reduce multiprogramming) or allocate frames according to each process's working set so faults drop again.
More Operating Systems questions
- A TLB has a hit ratio of 90%. A TLB access takes 10 ns and a main-memory access takes 100 ns. On a TLB hit, the data is fetched directly…
- A TLB has a hit ratio of 80%. TLB lookup takes 20 ns; a memory access (for the page table on a miss, or for data) takes 100 ns each. On a…
- Segmentation divides a process's address space into logical units (code, stack, heap) of varying size, unlike paging's fixed-size frames…
- In a segmentation scheme with segment table entries (base, limit), a process issues a logical address (segment 2, offset 5000). The…
- A system uses a two-level page table: a 10-bit outer index, a 10-bit inner index, and a 12-bit offset, for a 32-bit virtual address. What…
- A 36-bit virtual address space uses 4 KB pages and single-level page table entries of 8 bytes each. What is the total size of the page…