What is Queueing theory?
The theory that models with probability how processing requests arrive at a window or server and wait until it is free to be served, and that derives waiting times and queue lengths. A model is described in Kendall's notation, which lists the arrival distribution, service time distribution and number of servers, as in "M/M/1". In the M/M/1 model, the average waiting time is ρ/(1 − ρ) × Ts, using the utilization ρ = arrival rate λ × average service time Ts. It is used in computer performance evaluation, network delay analysis and analysis of work in progress in factories.
Japanese name: 待ち行列理論
Queueing theory appears in 6 practice questions across 1 topic, including Probability, Statistics and Queueing.
Field: Probability, Statistics and Queueing
Basic formulas
The utilization ρ = λ × Ts is the fraction of time the server is busy. For M/M/1, the average waiting time is Wq = ρ/(1 − ρ) × Ts, the average response time is W = Wq + Ts = Ts/(1 − ρ) and the average number in the system is L = ρ/(1 − ρ). These are linked by Little's law L = λW; for example, with λ = 3 per minute and Ts = 15 seconds, ρ = 0.75, Wq = 45 seconds, W = 60 seconds and L = 3.
FAQ
What if the M/M/1 assumptions do not hold?
A model closer to reality is used, such as M/D/1 when the service time is constant. The average waiting time of M/D/1 is exactly half that of M/M/1, and the smaller the variation in service time, the shorter the wait. Complex systems are often checked by simulation, and Little's law holds in every case.
Is it better to add servers or to make a server faster?
For the same total capacity, one server twice as fast gives a shorter average response time than two servers sharing one queue (M/M/2). Comparing only the time spent waiting in the queue, however, two servers give the shorter wait. Even with two servers, giving each its own separate queue means customers can wait at one while the other is idle, so the waiting time is longer than with a single shared queue.