CS FundamentalsVery hardProduct-company system-design interview

A single-server queue (M/M/1) serves 10 requests per second. At 8 requests/s the mean response time W = 1/(μ - λ) is 0.5 s. What happens if the arrival rate rises to 9 requests/s, and what is the average number of requests in the system, ρ/(1 - ρ), at each load?

  1. A. W rises to 0.56 s; 4 and 4.5 in the system
  2. B. W rises to 1.0 s; 4 and 9 in the system
  3. C. W stays 0.5 s; 0.8 and 0.9 in the system
  4. D. W rises to 0.9 s; 8 and 9 in the system

Correct answer: B. W rises to 1.0 s; 4 and 9 in the system

W = 1/(10 - 9) = 1.0 s, double the earlier 0.5 s, and the queue length grows from 0.8/0.2 = 4 to 0.9/0.1 = 9. A 12.5% rise in load doubles latency, which is why services are not run near 100% utilisation.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic