ArticleslgStudy

science

M/M/1 queue

M/M/1 queue is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand M/M/1 queue rather than just read about it. In short: In queueing theory, a discipline within the mathematical theory of probability, an M/M/1 queue represents the queue length in a system having a single server, where arrivals are determined by a Poisson process and job service times have an exponential distribution. The model name is written in Kendall's notation.

M/M/1 queue — main illustration
M/M/1 queue — illustration

Key takeaways

  • M/M/1 queue belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect M/M/1 queue to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of M/M/1 queue from memory before moving on to harder problems.

Reference excerpt

In queueing theory, a discipline within the mathematical theory of probability, an M/M/1 queue represents the queue length in a system having a single server, where arrivals are determined by a Poisson process and job service times have an exponential distribution. The model name is written in Kendall's notation. The model is the most elementary of queueing models and an attractive object of study as closed-form expressions can be obtained for many metrics of interest in this model. An extension of this model with more than one server is the M/M/c queue.

Model definition An M/M/1 queue is a stochastic process whose state space is the set {0,1,2,3,...} where the value corresponds to the number of customers in the system, including any currently in service.

Arrivals occur at rate λ according to a Poisson process and move the process from state i to i + 1. Service times have an exponential distribution with rate parameter μ in the M/M/1 queue, where 1/μ is the mean service time. All arrival times and services times are (usually) assumed to be independent of one another. A single server serves customers one at a time from the front of the queue, according to a first-come, first-served discipline. When the service is complete the customer leaves the queue and the number of customers in the system reduces by one. The buffer is of infinite size, so there is no limit on the number of customers it can contain. The model can be described as a continuous time Markov chain with transition rate matrix

Q=(−λλμ−(μ+λ)λμ−(μ+λ)λμ−(μ+λ)λ⋱) on the state space {0,1,2,3,...}. This is the same continuous time Markov chain as in a birth–death process. The state space diagram for this chain is as below.

Stationary analysis The model is considered stable only if λ < μ. If, on average, arrivals happen faster than service completions the queue will grow indefinitely long and the system will not have a stationary distribution. The stationary distribution is the limiting distribution for large values of t. Various performance measures can be computed explicitly for the M/M/1 queue. We write ρ = λ/μ for the utilization of the buffer and require ρ < 1 for the queue to be stable. ρ represents the average proportion of time which the server is occupied. The probability that the stationary process is in state i (contains i customers, including those in service) is

πi=(1−ρ)ρi.

Average number of customers in the system We see that the number of customers in the system is geometrically distributed with parameter 1 − ρ. Thus the average number of customers in the system is ρ/(1 − ρ) and the variance of number of customers in the system is ρ/(1 − ρ)2. This result holds for any work conserving service regime, such as processor sharing.

Busy period of server The busy period is the time period measured between the instant a customer arrives to an empty system until the instant a customer departs leaving behind an empty system. The busy period has probability density function

f(t)={1tρe−(λ+μ)tI1(2tλμ)t>00otherwise where I1 is a modified Bessel function of the first kind, obtained by using Laplace transforms and inverting the solution. The Laplace transform of the M/M/1 busy period is given by

𝔼(e−sF)=12λ(λ+μ+s−(λ+μ+s)2−4λμ) which gives the moments of the busy period, in particular the mean is 1/(μ − λ) and variance is given by

1μ2(1−ρ)2.

Response time The average response time or sojourn time (total time a customer spends in the system) does not depend on scheduling discipline and can be computed using Little's law as 1/(μ − λ). The average time spent waiting is 1/(μ − λ) − 1/μ = ρ/(μ − λ). The distribution of response times experienced does depend on scheduling discipline.

First-come, first-served discipline For customers who arrive and find the queue as a stationary process, the response time they experience (the sum of both waiting time and service time) has Laplace transform (μ − λ)/(s + μ − λ) and therefore probability density function

f(t)={(μ−λ)e−(μ−λ)tt>00otherwise.

Processor sharing discipline In an M/M/1-PS queue there is no waiting line and all jobs receive an equal proportion of the service capacity. Suppose the single server serves at rate 16 and there are 4 jobs in the system, each job will experience service at rate 4. The rate at which jobs receive service changes each time a job arrives at or departs from the system. For customers who arrive to find the queue as a stationary process, the Laplace transform of the distribution of response times experienced by customers was published in 1970, for which an integral representation is known. The waiting time distribution (response time less service time) for a customer requiring x amount of service has transform

W∗(s|x)=(1−ρ)(1−ρr2)e−[λ(1−r)+s]x(1−ρr2)−ρ(1−r)2e−(μ/r−λr)x where r is the smaller root of the equation

λr2−(λ+μ+s)r+μ=0. The mean response time for a job arriving and requiring amount x of service can therefore be computed as x μ/(μ − λ). An alternative approach computes the same results using a spectral expansion method.

Transient solution We can write a probability mass function dependent on t to describe the probability that the M/M/1 queue is in a particular state at a given time. We assume that the queue is initially in state i and write pk(t) for the probability of being in state k at time t. Then

pk(t)=e−(λ+μ)t[ρk−i2Ik−i(at)+ρk−i−12Ik+i+1(at)+(1−ρ)ρk∑j=k+i+2∞ρ−j/2Ij(at)] where i is the initial number of customers in the station at time t=0,ρ=λ/μ, a=2λμ and Ik is the modified Bessel function of the first kind. Moments for the transient solution can be expressed as the sum of two monotone functions.

Diffusion approximation When the utilization ρ is close to 1 the process can be approximated by a reflected Brownian motion with drift parameter λ – μ and variance parameter λ + μ. This heavy traffic limit was first introduced by John Kingman.

References

Illustrations

M/M/1 queue: An M/M/1 queueing node
An M/M/1 queueing node
M/M/1 queue illustration

Worked examples

Example 1 — a first encounter with M/M/1 queue

Start with the simplest possible case. Write down what M/M/1 queue claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to M/M/1 queue before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about M/M/1 queue ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of M/M/1 queue

In research
M/M/1 queue appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses M/M/1 queue in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
M/M/1 queue is common in secondary-school and first-year university syllabi. It links to neighbouring topics Single queueing nodes, so understanding it makes those chapters shorter.
In everyday life
Look for M/M/1 queue outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “M/M/1 queue” →

How to study M/M/1 queue in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what M/M/1 queue means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain M/M/1 queue out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is M/M/1 queue in simple terms?

In queueing theory, a discipline within the mathematical theory of probability, an M/M/1 queue represents the queue length in a system having a single server, where arrivals are determined by a Poisson process and job service times have an exponential distribution. The model name is written in Kend…

Why does M/M/1 queue matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study M/M/1 queue?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on M/M/1 queue.

Tags

  • Single queueing nodes

Keep exploring