CS FundamentalsVery hardGATE CS (PYQ pattern)

Rate-monotonic scheduling (preemptive, deadline = period, all tasks released together at t = 0) is used for T1 (C = 1, period 4), T2 (C = 2, period 6) and T3 (C, period 12). What is the largest integer C for which every deadline is met?

  1. A. 6
  2. B. 5
  3. C. 2
  4. D. 4

Correct answer: B. 5

Response time of T3 = C + ceil(R/4)x1 + ceil(R/6)x2. For C = 5 the fixed point is 12 <= 12; for C = 6 it exceeds 12. Utilisation is exactly 1 at C = 5; the Liu-Layland bound (0.78 for 3 tasks) would wrongly suggest C = 2 at most.

More Operating Systems questions

Exams that ask this topic