CS FundamentalsHardGATE CS (PYQ pattern)

Two periodic tasks with deadline = period and zero release offset: T1 (C=2, P=5) and T2 (C=4, P=7). Total utilisation is 2/5 + 4/7 ≈ 0.971. Consider: (I) under rate-monotonic scheduling T2 misses a deadline; (II) under EDF all deadlines are met; (III) because the utilisation is below 1, the set is RMS-schedulable; (IV) because 0.971 exceeds the Liu–Layland bound 2(√2−1) ≈ 0.828, RMS must fail on every such pair of tasks. Which are correct?

  1. A. I and II only
  2. B. I only
  3. C. II and III only
  4. D. I, II and IV only

Correct answer: A. I and II only

RMS: T1 runs 0-2, T2 runs 2-5 (3 units done), T1's second job runs 5-7, so T2 still has 1 unit left at its deadline t=7 and misses. EDF is optimal for U ≤ 1, so it succeeds. The Liu–Layland bound is sufficient, not necessary, so (IV) is wrong; (III) is wrong since U ≤ 1 only guarantees EDF.

More Operating Systems questions

Exams that ask this topic