CS FundamentalsVery hardGATE CS (PYQ pattern)
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 currently least-loaded processor). The optimal makespan over all assignments is also computed. What is the pair (LPT makespan, optimal makespan)?
- A. (14, 12)
- B. (13, 12)
- C. (13, 11)
- D. (12, 13)
Correct answer: B. (13, 12)
Total work is 35, so the optimum is at least 12. LPT gives 13; an exhaustive search over assignments gives 12.
More Operating Systems questions
- 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…
- LRU-2 replacement: on a fault the victim is the resident page whose SECOND most recent reference is oldest (a page referenced only once…