CS FundamentalsHardGATE CS (PYQ pattern)
Three periodic tasks (execution time, period = deadline) are given: A (1, 4), B (2, 6), C (3, 12). Which statement is correct?
- A. The utilisation exceeds the Liu-Layland bound, yet exact response-time analysis shows rate-monotonic meets all deadlines
- B. Rate-monotonic fails because total utilisation exceeds the Liu-Layland bound for three tasks
- C. The set is schedulable under EDF but not under rate-monotonic
- D. The set is not schedulable under EDF because utilisation exceeds 0.78
Correct answer: A. The utilisation exceeds the Liu-Layland bound, yet exact response-time analysis shows rate-monotonic meets all deadlines
U = 1/4 + 1/3 + 1/4 = 0.833 > 0.78 (n=3 bound), so the sufficient test fails, but the bound is only sufficient: response times are A 1, B 3, C 10 <= 12, all met. EDF also works since U <= 1.
More Operating Systems questions
- 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…
- Assume every fork() succeeds and each printf output is flushed immediately. int main(void) { for (int i = 0; i < 4; i++) { if (fork() ==…