CS FundamentalsVery hardGATE CS (PYQ pattern)
Rate-monotonic scheduling (preemptive, deadline = period, all tasks released together at t = 0) is used for T1 (C = 1, period 4), T2 (C = 2, period 6) and T3 (C, period 12). What is the largest integer C for which every deadline is met?
- A. 6
- B. 5
- C. 2
- D. 4
Correct answer: B. 5
Response time of T3 = C + ceil(R/4)x1 + ceil(R/6)x2. For C = 5 the fixed point is 12 <= 12; for C = 6 it exceeds 12. Utilisation is exactly 1 at C = 5; the Liu-Layland bound (0.78 for 3 tasks) would wrongly suggest C = 2 at most.
More Operating Systems questions
- A 3-level paging system has a TLB (1 ns, hit ratio 95%) and a cache in front of memory (10 ns hit time, 90% hit ratio, and a miss costs 10…
- Segment table (base, limit in bytes): seg 0 = (1000, 400), seg 1 = (2400, 100), seg 2 = (3000, 250), seg 4 = (500, 60); segment 3 is not…
- A system uses LRU with 3 frames (initially empty). A dirty page is written back to disk only when it is evicted; a page is dirty if it was…
- LFU replacement with 3 frames (initially empty): the victim is the resident page with the smallest reference count since it was loaded…
- Working-set window Δ = 5 references: WS(t) is the set of distinct pages among the 5 most recent references up to and including time t…
- Semaphores x = 0, y = 0. P1: print a; signal(x); wait(y); print b. P2: wait(x); print c; signal(y); print d. P3: print e. All three start…