CS FundamentalsHardGATE CS (PYQ pattern)
Rate-monotonic tasks (C, T = D, worst-case blocking B): t1 (2, 5, 2), t2 (2, 8, 2), t3 (4, 12, 0). Response time R = C + B + sum over higher-priority tasks of ceil(R / Tj) x Cj. Which tasks meet their deadlines?
- A. t1 and t2 only
- B. t1, t2 and t3
- C. t2 and t3 only
- D. t1 and t3 only
Correct answer: A. t1 and t2 only
Fixed-point iteration gives response times [4, 8, 14] against deadlines 5, 8, 12.
More Operating Systems questions
- Eight independent jobs with lengths 7, 6, 5, 5, 4, 3, 3, 2 are scheduled on 3 identical processors by LPT (longest job first onto the…
- Rate-monotonic tasks (C, period = deadline) T1 (1, 3), T2 (1, 5), T3 (3, 15) are released together at t = 0. How many times is T3…
- Two CPU-bound processes alternate on one core, 100 context switches per second. Each has a 40-page working set in the TLB (64 entries)…
- A thread runs on node 0 of a 4-node NUMA machine. Access latency is 80 ns to node 0, 140 ns to nodes 1 and 2 (one hop) and 200 ns to node…
- A physically indexed 1 MB, 8-way set-associative L2 cache with 64-byte lines sits under a system with 4 KB pages and 4 GB of RAM. How many…
- A slab allocator builds each slab from two contiguous 4 KB pages. A slab has a 16-byte header and holds as many 200-byte objects as fit…