CS FundamentalsEasyTCS NQT · Infosys interview pattern

Which CPU scheduling algorithm can make a long process wait indefinitely if short processes keep arriving?

  1. A. First-Come, First-Served (FCFS)
  2. B. Round Robin
  3. C. None — no scheduling algorithm can cause starvation
  4. D. Shortest Job First (SJF)

Correct answer: D. Shortest Job First (SJF)

SJF always prefers the shortest job, so a long job can starve while shorter ones keep arriving. FCFS and Round Robin serve every process in turn, so they do not starve anyone.

More Operating Systems questions

Exams that ask this topic