CS FundamentalsModerateGATE CS (PYQ pattern)
Stride scheduling with stride = 6000 / tickets: A has 100 tickets, B 200 and C 300. All passes start at 0; each quantum the process with the smallest pass runs (ties go to the lower-lettered process) and its pass grows by its stride. Over the first 12 quanta, how many does A get?
- A. 1
- B. 2
- C. 3
- D. 4
Correct answer: B. 2
Strides are [60, 30, 20]. Running the pass values for 12 quanta gives A 2, B 4, C 6 quanta (ideal proportion 2, 4, 6).
More Operating Systems questions
- A CFS-like scheduler picks the runnable task with the smallest virtual runtime and runs it for a 4 ms slice, then adds 4 x 1024 / weight…
- Three tasks share two resources under the priority ceiling protocol (priorities t1 > t2 > t3). t3 has a 4 ms critical section on R1 and a…
- 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…
- 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)…