Lines form whenever work arrives faster than it can be cleared. Queueing theory says something deeply counter-intuitive: the wait doesn't grow smoothly as you get busier — it explodes. Pushing a system from 80% to 95% utilisation can multiply the wait many times over. Scroll through to watch a queue come alive, see the wait rocket toward infinity near full capacity, and check the elegant accounting law (L = λ·W) that ties it all together.
Customers arrive at the left at average rate λ and join the line. A free server pulls the next customer, serves them for a random time (average rate μ), then they leave at the right. Both arrivals and service are random (exponential). The single number that matters is utilisation ρ = λ / (c·μ) — how full the system is. Push the arrival rate up toward capacity and watch the line stop draining.
Average wait is roughly proportional to 1 / (1 − ρ). That term is gentle for a while, then turns nearly vertical as ρ approaches 1. Going from 50% to 75% busy barely doubles the wait; going from 90% to 98% can multiply it tenfold. The hollow marker is the live measurement from the simulation above — drag its λ slider and watch your operating point climb the wall.
One of the most useful results in all of operations: in any stable queue, the average number of customers in the system (L) equals the arrival rate λ times the average time each one spends there (W). It needs no assumptions about the arrival pattern — just that the system is stable. Watch the measured L track λ·W as the simulation runs.