CS FundamentalsHardGATE CS (PYQ pattern)
Disk requests arrive as a Poisson stream of 100 per second; service times are exponential (M/M/1 per disk). Option X buys one disk twice as fast as the current one (mean service 4 ms); option Y adds a second current disk (mean service 8 ms each) and sends each request to either disk at random with probability 1/2. Which option gives the lower mean response time, and what is it?
- A. X, about 6.7 ms
- B. Y, about 13.3 ms
- C. Y, about 6.7 ms
- D. X, about 13.3 ms
Correct answer: A. X, about 6.7 ms
X: mu = 250/s, T = 1 / (250 - 100) = 6.7 ms. Y: each disk sees 50/s with mu = 125/s, T = 1 / (125 - 50) = 13.3 ms. Today's single disk gives 1 / (125 - 100) = 40 ms. One fast server beats two random-split slow ones.
More Operating Systems questions
- Round Robin uses a 20 ms quantum and every context switch costs 2 ms; all n processes are CPU-bound and always use the full quantum. From…
- A ticket lock has nextticket = 10 and nowserving = 10 (free). Events in order: T1 acquires, T2 acquires, T3 acquires, T1 releases, T4…
- Which of the following statements about read-copy-update (RCU) are correct? I. Readers traverse the data structure without taking locks…
- Which of the following statements about fork() with copy-on-write are correct? I. Right after fork, parent and child map the same physical…
- Under first-fit, the fifty-percent rule says that with N allocated blocks there are about N/2 holes. In a measured system the average hole…
- A machine has 48-bit virtual addresses, 16 KB pages and 8-byte page-table entries. Every page-table node must fit in one page, lower…