CS FundamentalsVery hardGATE CS · Advanced

Four periodic tasks (computation time C, period T = relative deadline), all released at t = 0, are scheduled by preemptive rate-monotonic scheduling: T1 (1, 4), T2 (2, 6), T3 (2, 12), T4 (5, 30). What is the worst-case response time of T4?

  1. A. 10
  2. B. 23
  3. C. 11
  4. D. 25

Correct answer: B. 23

Response-time analysis: R = C4 + sum over higher-priority tasks of ceil(R/Tj) x Cj, iterated from R = C4 until it stops changing (it converges at 23). One iteration only gives 11, and adding all computation times gives 10 (ignoring repeated preemptions).

More Operating Systems questions

Exams that ask this topic