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?
- A. Both RM and EDF meet all deadlines, since U ≈ 0.971 is below 1
- B. Neither RM nor EDF can, since U exceeds the 2-task bound 0.83
- C. RM misses T2's deadline at time 7, but EDF meets every deadline
- 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
- Each process spends 50% of its time waiting for I/O, independently of the others. Under the simple model CPU utilisation = 1 − pⁿ, what is…
- Memory access takes 100 ns. A page fault occurs once per million accesses; servicing it takes 8 ms if the victim page is clean and 20 ms…
- An inode has 12 direct pointers, one single-indirect and one double-indirect pointer; blocks are 4 KB and pointers 8 bytes. What is the…
- A parent forks 3 children that each call exit(0) immediately; the parent then sleeps for a minute without calling wait() and without…
- Why is a test-and-test-and-set spinlock (spin on a plain read, and only try the atomic exchange when the lock looks free) usually faster…
- A lock-free stack pops with CAS(&top, old, old->next). Thread 1 reads top = A (A->next = B) and is delayed; thread 2 pops A, pops B, then…