CS FundamentalsHardGATE CS · Amazon/Microsoft SDE MCQ
Which statement about thrashing and the degree of multiprogramming is correct?
- A. Adding processes keeps raising CPU utilisation as long as swap space remains free
- B. Thrashing is cured by giving every process exactly one frame each
- C. Past a point more processes lower CPU use, and a naive scheduler then admits even more
- D. Thrashing can happen only with global replacement and FIFO eviction
Correct answer: C. Past a point more processes lower CPU use, and a naive scheduler then admits even more
When the sum of working sets exceeds memory, processes keep faulting and the CPU idles waiting for the disk; a long-term scheduler reading low utilisation admits more processes, worsening it. Local replacement limits but does not end it.
More Operating Systems questions
- Two threads acquire mutexes: T1 locks A then B; T2 locks B then A. Which change prevents deadlock while still letting both threads hold…
- A system uses demand paging with a 4 KB page, and a process allocates a fresh 1 MB zeroed buffer with mmap but touches only its first 10…
- Which statement about a system call compared with an ordinary function call is correct?
- Five batch jobs arrive together with run times 9, 6, 3, 5 and x, where x < 3. In what order should they run to minimise average turnaround…
- Statement 1: Under round robin, as the quantum shrinks towards the context-switch time, CPU efficiency approaches 50%. Statement 2: For a…
- Which of these must a process NOT be able to do in user mode on a typical protected OS?