CS FundamentalsVery hardGATE CS · Advanced
Four periodic tasks (computation time C, period T = relative deadline), all released at t = 0, are scheduled by preemptive rate-monotonic scheduling: T1 (1, 4), T2 (2, 6), T3 (2, 12), T4 (5, 30). What is the worst-case response time of T4?
- A. 10
- B. 23
- C. 11
- D. 25
Correct answer: B. 23
Response-time analysis: R = C4 + sum over higher-priority tasks of ceil(R/Tj) x Cj, iterated from R = C4 until it stops changing (it converges at 23). One iteration only gives 11, and adding all computation times gives 10 (ignoring repeated preemptions).
More Operating Systems questions
- A disk spins at 7200 rpm with 500 sectors per track and an average seek time of 5 ms. The controller adds 0.2 ms of overhead. What is the…
- A stride scheduler gives processes A, B and C 100, 50 and 250 tickets respectively, with stride = 10000 / tickets. Every process starts…
- A process uses 100 MiB of memory. A page-table entry is 8 bytes, and on average half of the last page is wasted. Among page sizes that are…
- The aging algorithm keeps an 8-bit counter per page for pages 0-3. At the end of every clock tick each counter is shifted right by one bit…
- A file system has 1 KB blocks and 4-byte block pointers; the inode (already in memory) holds 12 direct pointers and one single-, one…
- Three periodic tasks (C, T) with deadline equal to period, all released at t = 0, are: (1, 4), (4, 9), (4, 15). Their total utilisation is…