CS FundamentalsVery hardGATE CS · Advanced

A stride scheduler gives processes A, B and C 100, 50 and 250 tickets respectively, with stride = 10000 / tickets. Every process starts with pass value 0. At each quantum the process with the smallest pass value runs (ties go to the alphabetically earliest name) and its pass value then increases by its stride. Which process sequence runs in the first 10 quanta?

  1. A. CCACCABCCC
  2. B. CBACCACCCB
  3. C. CCACCBCCAC
  4. D. ABCCCACCAB

Correct answer: D. ABCCCACCAB

Strides are A = 100, B = 200, C = 40. Tracking the three pass values quantum by quantum gives the sequence ABCCCACCAB; a different tie-break or a different starting pass changes it.

More Operating Systems questions

Exams that ask this topic