Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which CPU scheduling algorithm is most likely to cause 'Starvation' for long-running processes ?

  • A.Shortest Job First (SJF) - non preemptive
  • B.Round Robin (RR)
  • C.First-Come, First-Served (FCFS)
  • D.Multilevel Feedback Queue

Answer: A

Starvation is most likely under Shortest Job First (SJF) - non preemptive.

SJF always runs the shortest waiting job next. If short jobs keep arriving, a long job can wait indefinitely, because there is always a shorter job ahead of it. That indefinite postponement is starvation; ageing, which raises a job's priority the longer it waits, is the usual remedy.

Round robin gives every process a time slice in turn, and FCFS serves processes in arrival order, so neither starves anyone. Multilevel feedback queues can starve low-priority processes too, but they normally include ageing, so SJF is the standard answer.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.