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

Discussion

Which of the following algorithms may cause starvation ?

(i) First-come-first-serve
(ii) Round Robin
(iii) Priority
(iv) Shortest process next
(v) Shortest remaining time first

  • A.(i), (iii) and (v)
  • B.(iii), (iv) and (v)
  • C.(ii), (iv) and (v)
  • D.(ii), (iii) and (iv)

Answer: B

Starvation can occur with (iii), (iv) and (v).

Under priority scheduling, a low-priority process can wait indefinitely if higher-priority processes keep arriving. Shortest process next and shortest remaining time first always favour short jobs, so a long process can be postponed forever if short jobs keep coming.

First-come-first-served and round robin cannot starve a process. FCFS serves every process in arrival order, and round robin gives each ready process a time slice in turn, so every process eventually runs. Options including (i) or (ii) are therefore wrong.

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

Post your comment

Please log in or register to post a comment.