A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Queueing Theory: The M/M/1 Queue and Little's Law

Research Depth 115 in the knowledge graph ☐ I know this ☆ Set as goal
771prerequisites beneath it
See this on the map →
Continuous-Time Markov ChainsExponential Distribution+2 more→
stochastic-processes queueing-theory birth-death-process littles-law stationary-distribution operations-research

Core Idea

Queueing theory models systems where customers arrive, wait and are served. In the M/M/1 queue, arrivals form a Poisson process with rate λ, service times are independent exponential random variables with rate μ, and there is a single server. The number in the system is then a birth-death continuous-time Markov chain. When the traffic intensity ρ = λ/μ is less than 1, the queue has stationary distribution πₙ = (1 - ρ)ρⁿ, with mean number in system L = ρ/(1 - ρ) and mean time in system W = 1/(μ - λ). Little's law, L = λW, links averages in very general queueing systems.

How It's Best Learned

Draw the state diagram 0, 1, 2, ... with arrows at rate λ to the right and rate μ to the left, and solve the balance equations across each cut between neighboring states. Tabulate L for ρ = 0.5, 0.8, 0.9 and 0.95 to see the sharp growth as ρ approaches 1. Then justify Little's law with the picture of total waiting time as an area under the number-in-system curve, and apply it to compute waiting times from queue lengths.

Common Misconceptions

Explainer

Queues appear in call centers, computer networks, hospitals and checkout lines. The simplest model that captures their main effects is the M/M/1 queue. In Kendall's notation, the first M means Markovian (Poisson) arrivals, the second M means Markovian (exponential) service times, and 1 is the number of servers.

Let N(t) be the number of customers present, including the one in service. Because exponential times are memoryless, N(t) is a continuous-time Markov chain. From state n it moves up to n + 1 at rate λ (an arrival) and, if n ≥ 1, down to n - 1 at rate μ (a departure). This is a birth-death process.

For a stationary distribution π, the flow across the cut between states n and n + 1 must balance: λπₙ = μπₙ₊₁. Writing ρ = λ/μ, this gives πₙ = ρⁿπ₀. The probabilities must sum to 1, which is possible only if ρ < 1, and then π₀ = 1 - ρ. So

πₙ = (1 - ρ)ρⁿ, n = 0, 1, 2, ...,

a geometric distribution. The server is idle a fraction 1 - ρ of the time, which is why ρ is called the utilization.

The mean number in the system is L = ρ/(1 - ρ). This formula explains a lot of everyday frustration. At ρ = 0.5, L = 1. At ρ = 0.8, L = 4. At ρ = 0.9, L = 9, and at ρ = 0.95, L = 19. Raising utilization from 90% to 95% roughly doubles the queue. On average the server keeps up, so this congestion comes from random fluctuations in arrivals and service.

Little's law connects queue lengths to waiting times. If customers arrive at long-run rate λ and each spends an average time W in the system, then the long-run average number present is L = λW. The idea is to add up total customer-time in two ways: as the area under N(t), or as the sum of individual stays. The law holds for a wide class of stable systems. For the M/M/1 queue it gives W = L/λ = 1/(μ - λ). With λ = 8 and μ = 10 per hour, W = 30 minutes, of which 6 minutes on average is service and 24 minutes is waiting in line.

The same method extends to multiple servers (M/M/c), finite waiting rooms and networks of queues. In heavy traffic, when ρ is close to 1, a suitably rescaled queue-length process is approximated by reflected Brownian motion.

Practice Questions 4 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Multiplying Binomials (FOIL) → Factoring Trinomials → Factoring Completely → Introduction to Rational Expressions → Simplifying Radical Expressions → Segments and Distance → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Similar Right Triangles and the Geometric Mean → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Special Right Triangles: 30-60-90 → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Double Integrals: Definition and Setup → Iterated Integrals and Fubini's Theorem → Double Integrals over Rectangular Regions → Double Integrals over General Regions → Applications of Double Integrals: Area, Mass, and Moments → Work Done by a Force → Kinetic Energy → Elastic Collisions → Inelastic Collisions → Coefficient of Restitution → Collision Analysis and Real-World Applications → Two-Body Collisions in the Center-of-Mass Frame → Reduced Mass and Two-Body Problems → Kinematics in Two Dimensions → Projectile Motion → Circular Motion: Kinematics → Simple Harmonic Motion → Introduction to Differential Equations → Continuous-Time Markov Chains → Queueing Theory: The M/M/1 Queue and Little's Law

Longest path: 116 steps · 771 total prerequisite topics

Prerequisites (4)

Leads To (0)

No topics depend on this one yet.