CS FundamentalsEasyGATE CS (PYQ pattern)
A lottery scheduler holds a fresh draw every quantum. Process A has 100 tickets, B has 200 and C has 300 (every process always stays runnable). What is the probability that A runs at least once in the next 3 quanta?
- A. 42.1%
- B. 50.0%
- C. 16.7%
- D. 57.9%
Correct answer: A. 42.1%
P(A loses a single draw) = 500/600 = 5/6, so P(A never runs in 3 draws) = (5/6)^3 = 0.5787 and the answer is 1 - 0.5787 = 42.1%. 50% is 3 x 1/6.
More Operating Systems questions
- Rate-monotonic scheduling (preemptive, deadline = period, all tasks released together at t = 0) is used for T1 (C = 1, period 4), T2 (C =…
- 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…