Question:

Which one or more of the following CPU scheduling algorithms can potentially cause starvation?

Show Hint

Starvation happens when some processes wait indefinitely. It commonly occurs in scheduling policies that favor certain types of jobs (short jobs or high-priority jobs). Round Robin avoids starvation since every process gets CPU time fairly.
Updated On: Aug 26, 2025
  • First-in First-Out
  • Round Robin
  • Priority Scheduling
  • Shortest Job First
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1: Analyze Option (A) First-in First-Out (FIFO)
In FIFO (or FCFS), processes are scheduled in the order of their arrival. However, a very long job at the front can delay all other processes (known as the “convoy effect”). Short processes behind it may wait indefinitely long if long jobs keep arriving. This is a form of starvation.
\(\Rightarrow\) (A) can cause starvation. Step 2: Analyze Option (B) Round Robin
Round Robin ensures fairness by giving each process a fixed time slice in cyclic order. Every process eventually gets CPU time, so starvation is avoided.
\(\Rightarrow\) (B) does not cause starvation.
Step 3: Analyze Option (C) Priority Scheduling
In Priority Scheduling, higher priority processes are executed first. If higher-priority processes keep arriving, lower-priority processes may never get CPU time. This indefinite waiting is starvation.
\(\Rightarrow\) (C) can cause starvation.
Step 4: Analyze Option (D) Shortest Job First (SJF)
In non-preemptive SJF, if short jobs keep arriving, longer jobs may get postponed indefinitely. In preemptive SJF (Shortest Remaining Time First), a long process can be repeatedly preempted by shorter ones. Both situations may lead to starvation of long processes.
\(\Rightarrow\) (D) can cause starvation. \[ \boxed{\text{Correct Options: (A) FIFO, (C) Priority Scheduling, and (D) Shortest Job First}} \]
Was this answer helpful?
0
0

Questions Asked in GATE CS exam

View More Questions