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

Discussion

Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?

  • A.Shortest remaining time first
  • B.Round-robin with time quantum less than the shortest CPU burst
  • C.Uniform random
  • D.Highest priority first with priority proportional to CPU burst length

Answer: A

The algorithm is Shortest remaining time first.

Shortest-job-first is provably optimal for minimizing average waiting time: running shorter jobs first means fewer processes wait behind each long one. All processes here arrive together, so shortest remaining time first behaves exactly like SJF and achieves that optimum.

Round-robin with a small quantum interleaves everything, so every process waits through slices of all the others. A uniform random order is optimal only by chance. Priority proportional to burst length runs the longest jobs first, the worst possible order for average waiting time.

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

Post your comment

Please log in or register to post a comment.