Queueing Processes
Stable M/M/1 systems and waiting-time measures
An M/M/1 queue has Poisson arrivals at rate λ, independent exponential service times at rate μ, one first-come, first-served server, and unlimited waiting room. Its long-run formulas require arrivals to be slower than service: λ<μ. This capacity check comes before any calculation of a stationary probability or mean delay.
Stability and spare capacity
The traffic intensity is ρ=λ/μ, the fraction of service capacity demanded on average. When ρ<1, a stationary distribution exists for the number of jobs in the system.
At or above capacity, that distribution cannot be normalized, so a finite stationary mean wait is unavailable. The quantity μ−λ is spare capacity, and the mean delay grows sharply as it approaches zero from above.
Occupancy and time measures
In the stable model, the stationary count N includes the job in service as well as any waiting jobs. Its exact-state probability is P(N=n)=(1−ρ)ρn, and its mean is L=ρ/(1−ρ). Summing the geometric probabilities from a threshold k upward gives P(N≥k)=ρk; this tail is different from the probability of exactly k jobs.
Time in system includes both waiting and service, with mean W=1/(μ−λ). The queue-only wait has mean Wq=W−1/μ, because 1/μ is mean service time. In the stable stationary regime, Little's law checks consistent system-wide measures through L=λW. Rates have units of reciprocal time, while both waiting measures have units of time.
Worked example
Suppose arrivals average 2 jobs per hour and service averages 7 jobs per hour. Then ρ=2/7<1, so the stationary formulas apply; the empty-system probability is P(N=0)=5/7. The mean number in the system is L=(2/7)/(5/7)=2/5 job, and the mean time in the system is W=1/(7−2)=1/5 hour, or 12 minutes. Subtracting mean service time gives Wq=1/5−1/7=2/35 hour, about 3.43 minutes; λW=2/5 job confirms the count.
A stable M/M/1 system has λ = 2/hour and μ = 5/hour. What is the stationary probability of exactly two jobs in the system, including any in service?
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
For a stable FCFS M/M/1 queue with λ = 3/hour and μ = 6/hour, calculate the stationary mean time in system W and mean time waiting before service Wq, both in minutes.