Performance Analysis

A server receives 100 requests per second, each taking 0.2 seconds on average (steady state). How many requests are in progress at once on average (Little's law)?

  1. A500
  2. B20
  3. C0.002
Show answer and explanation

Answer: B. 20

Little's law states that the average number in a system L equals the arrival rate λ times the average time each item spends in the system W. With 100 arrivals per second each staying 0.2 seconds, 20 requests are in progress on average. The law helps size thread pools and buffers, and the same reasoning gives how many outstanding requests are needed to saturate memory bandwidth.

  • A. That divides the arrival rate by the time.
  • B. Correct. 100 × 0.2 = 20.
  • C. That divides the time by the arrival rate.
Practice this topic Back to topic

More Performance Analysis questions

  1. What happens to request waiting time as server utilization (fraction of busy time) approaches 100%?
  2. What is the purpose of using a profiler when improving program performance?
  3. What characterizes a sampling profiler?
  4. Which statement about instrumentation profilers, which insert timing code at function entries and exits, is correct?
  5. In program performance analysis, what is a hotspot?