CS FundamentalsVery hardGATE CS
Three periodic tasks (deadline = period, all released at t=0) are scheduled by preemptive rate-monotonic scheduling: T1 (C=2, P=5), T2 (C=2, P=7), T3 (C=3, P=15). Total utilisation is about 0.886, above the Liu–Layland bound for three tasks (≈0.780). What is the worst-case response time of T3?
- A. 9
- B. 11
- C. 15
- D. 13
Correct answer: D. 13
Iterate R = 3 + ⌈R/5⌉·2 + ⌈R/7⌉·2: R=7 gives 9, R=9 gives 11, R=11 gives 13, R=13 gives 13 (fixed point). 13 ≤ 15, so the set is schedulable even though the utilisation bound fails.
More Operating Systems questions
- Two processes use shared variables flag[2] (initially 0) and turn. Process i (j = 1−i) runs: V1: flag[i]=1; turn=j; while(flag[j] &&…
- Binary semaphore m is initialised to 1. P1: P(m); print A; V(m); print B. P2: P(m); print C; V(m); print D. P3: P(m); print E; V(m). All…
- Priority-based preemptive scheduling with L (low), M (medium), H (high). L arrives at t=0 and needs 10 units; at t=1 L locks a mutex and…
- A C program runs: int i; for(i=0;i<4;i++){ if(fork()==0 && i%2==0) break; } printf("X"); Every process, including the original, reaches…
- Banker's algorithm with 3 resource types. Available = (1,1,1). Allocation rows P0..P3: (1,0,1), (0,2,0), (2,1,0), (1,1,1); Maximum rows…
- A disk has cylinders 0-199. The head is at cylinder 50 moving towards higher numbers. Pending requests: 176, 79, 34, 60, 92, 11, 41, 114…