Questions: CPU Scheduling Algorithms

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

Three processes arrive simultaneously: P1 (burst 30ms), P2 (burst 2ms), P3 (burst 4ms). Under FCFS in arrival order P1, P2, P3, what is P2's waiting time?

A0ms — P2 runs immediately after P1 without waiting
B30ms — P2 waits for P1 to complete
C2ms — P2 waits for its own burst time
D34ms — P2 waits for both P1 and P3 to complete
Question 2 Multiple Choice

In a Multilevel Feedback Queue, a process that consistently uses its entire time quantum at the highest priority level will be:

APromoted to an even higher priority level as a reward for intensive CPU use
BDemoted to a lower priority queue, because full quantum usage signals CPU-bound behavior
CKept at the same level with a longer quantum to reduce context-switching overhead
DTerminated, since MLFQ assumes interactive processes should dominate
Question 3 True / False

Shortest Job First is the best scheduling algorithm for real operating systems because it provably minimizes average waiting time.

TTrue
FFalse
Question 4 True / False

Making the Round Robin time quantum very small (e.g., 1ms) typically improves responsiveness because nearly every process gets the CPU more frequently.

TTrue
FFalse
Question 5 Short Answer

Explain why MLFQ does not need to know CPU burst times in advance, and how it nonetheless approximates the goal that SJF is trying to achieve.

Think about your answer, then reveal below.