Question 39

Consider a set of n tasks with known runtimes r1, r2 ........ rn, to be run on a uniprocessor machine, Which of the following processor scheduling algorithm…

Consider a set of n tasks with known runtimes r1, r2 ........ rn, to be run on a uniprocessor machine, Which of the following processor scheduling algorithm will result in the maximum throughput.
  1. APriority scheduling
  2. BRound-robin
  3. CFCFS
  4. DShortest job first
Show answerHide answer

Correct answer: (D) Shortest job first

Explanation

Shortest Job First runs the shortest tasks first, so the average waiting time is minimised and the most jobs are completed per unit time.

From DSSSB TGT Computer Science Practice Set 2

This is question 39 of DSSSB TGT Computer Science Practice Set 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.