CS FundamentalsHardGATE CS (PYQ pattern)
Periodic tasks (execution time, period = deadline): T1 (2, 5), T2 (4, 7). Which statement is correct?
- A. Rate-monotonic schedules the set because utilisation is below 1
- B. Neither rate-monotonic nor EDF can schedule the set
- C. EDF also fails because utilisation 0.971 exceeds the Liu-Layland bound of 0.828
- D. Rate-monotonic fails (T2 misses its deadline) but EDF schedules the set
Correct answer: D. Rate-monotonic fails (T2 misses its deadline) but EDF schedules the set
U = 2/5 + 4/7 = 0.971 <= 1, so EDF works. Under RM, T2's response time: 4 -> 6 -> 8 -> 8 > 7, so it misses. The Liu-Layland bound for 2 tasks is 0.828, but U > 0.828 only means the test is inconclusive; exact analysis shows failure.
More Operating Systems questions
- Three periodic tasks (execution time, period = deadline) are given: A (1, 4), B (2, 6), C (3, 12). Which statement is correct?
- A system has R identical units of one resource. Four processes need at most 3, 4, 2 and 5 units. Each process requests units TWO at a time…
- Banker's algorithm: 5 processes, resource types A, B, C with totals (10, 5, 7). Allocation / Maximum: P0 (0,1,0)/(7,5,3), P1…
- A disk has cylinders 0 to 199. The head is at cylinder 60 moving upward. Pending requests: 18, 150, 72, 41, 177, 95, 33, 124. C-LOOK…
- FIFO page replacement is run on the reference string 3, 4, 2, 6, 1, 3, 4, 6, 7, 1, 1, 5, 3, 4, 7, 2, 1, 7 with an initially empty memory…
- The clock (second-chance) algorithm manages 4 frames, initially empty and filled in order 0..3. A page's reference bit is set to 1 when it…