CS FundamentalsVery hardGATE CS
In real-time scheduling, three periodic tasks have (execution time, period) = (1, 4), (2, 6), (1, 8), with deadline = period. Which statement is correct?
- A. Total utilisation is about 0.71, so EDF can schedule them; it is also below the Liu–Layland bound for 3 tasks (about 0.78), so rate-monotonic can too
- B. Utilisation exceeds 1, so no algorithm can meet all deadlines
- C. EDF can schedule them but rate-monotonic cannot
- D. Rate-monotonic can schedule them but EDF cannot
Correct answer: A. Total utilisation is about 0.71, so EDF can schedule them; it is also below the Liu–Layland bound for 3 tasks (about 0.78), so rate-monotonic can too
U = 1/4 + 2/6 + 1/8 = 0.25 + 0.333 + 0.125 ≈ 0.708. EDF is optimal up to U = 1. The RM sufficient bound for n = 3 is 3(2^(1/3) − 1) ≈ 0.780, and 0.708 is below it.
More Operating Systems questions
- Two periodic tasks: T1 (execution 2, period 5) and T2 (execution 4, period 7), deadlines equal to periods. Which statement is correct?
- Priority inversion: low-priority L holds a mutex needed by high-priority H, and medium-priority M (which does not need the mutex) keeps…
- Which property distinguishes a mutex from a binary semaphore in most implementations?
- A spinlock is held for about 50 ns on average, and a context switch costs about 5 µs. On a multicore machine, which is better for a thread…
- compareandswap(&v, expected, new) atomically sets v = new only if v == expected and returns the old value. A lock-free increment is…
- Which condition makes disabling interrupts an INSUFFICIENT way to implement a critical section?