Question 34

If the time quantum size is 2 units of an there is only one job of 14 time unit in a ready queue, the round-robin scheduling algorithm will cause ______…

If the time quantum size is 2 units of an there is only one job of 14 time unit in a ready queue, the round-robin scheduling algorithm will cause ______ context switches.
  1. A8
  2. B5
  3. C6
  4. D7
Show answerHide answer

Correct answer: (C) 6

Explanation

A 14-unit job with a 2-unit quantum runs in 7 slices. A switch is counted between slices, giving 7 − 1 = 6 context switches.

From DSSSB TGT Computer Science Practice Set 3

This is question 34 of DSSSB TGT Computer Science Practice Set 3. 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.