CS FundamentalsModerateWipro · Cognizant pattern
Match each scheduling algorithm with its property: (P) Round Robin (Q) SRTF (R) Multilevel feedback queue (S) FCFS (1) Moves processes between queues based on observed CPU usage (2) Response time depends on the time quantum (3) Non-preemptive and prone to the convoy effect (4) Preemptive version of SJF; long jobs may starve
- A. P-1, Q-4, R-2, S-3
- B. P-3, Q-4, R-1, S-2
- C. P-2, Q-4, R-1, S-3
- D. P-2, Q-1, R-4, S-3
Correct answer: C. P-2, Q-4, R-1, S-3
RR's responsiveness is set by the quantum; SRTF is preemptive SJF and can starve long jobs; MLFQ demotes CPU-heavy and promotes waiting processes; FCFS is non-preemptive with the convoy effect.
More Operating Systems questions
- How many of the following statements are correct? 1. On a context switch, the TLB must be flushed unless its entries carry an…
- A 16 GB disk is formatted with 4 KB blocks and a File Allocation Table (FAT) that has one 4-byte entry per block. How large is the FAT…
- How many of the following statements about semaphores and mutexes are correct? 1. A binary semaphore can be used to achieve mutual…
- Process L (low priority) holds a lock that high-priority process H needs. Medium-priority process M, which does not need the lock, becomes…
- Consider this loop: c for (int i = 0; i < 2; i++) { fork(); printf("-"); } stdout is redirected to a file (fully buffered) and no fflush…
- Which CPU scheduling algorithm can make a long process wait indefinitely if short processes keep arriving?