CS FundamentalsVery hardGATE CS

Periodic tasks T1 (execution 2, period 5) and T2 (execution 4, period 7), deadlines equal to periods. Which statement is correct?

  1. A. Both RM and EDF meet all deadlines, since U ≈ 0.971 is below 1
  2. B. Neither RM nor EDF can, since U exceeds the 2-task bound 0.83
  3. C. RM misses T2's deadline at time 7, but EDF meets every deadline
  4. D. RM meets every deadline, but EDF misses one of T2's deadlines

Correct answer: C. RM misses T2's deadline at time 7, but EDF meets every deadline

Under RM, T2's response time iterates R = 4 + ⌈R/5⌉ × 2: 6, then 8 > 7, so it misses. EDF is optimal on one processor and succeeds whenever U ≤ 1, and here U = 0.4 + 0.571 ≈ 0.971.

More Operating Systems questions

Exams that ask this topic