ArticleslgStudy

science

M/G/1 queue

M/G/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/G/1 queue rather than just read about it. In short: In queueing theory, a discipline within the mathematical theory of probability, an M/G/1 queue is a queue model where arrivals are Markovian (modulated by a Poisson process), service times have a General distribution and there is a single server. The model name is written in Kendall's notation, and is an extension of the M/M/1 queue, where service times must be exponentially distributed.

Key takeaways

  • M/G/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/G/1 queue to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of M/G/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/G/1 queue is a queue model where arrivals are Markovian (modulated by a Poisson process), service times have a General distribution and there is a single server. The model name is written in Kendall's notation, and is an extension of the M/M/1 queue, where service times must be exponentially distributed. The classic application of the M/G/1 queue is to model performance of a fixed head hard disk.

Model definition A queue represented by a M/G/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 queue, including any being served. Transitions from state i to i + 1 represent the arrival of a new customer: the times between such arrivals have an exponential distribution with parameter λ. Transitions from state i to i − 1 represent a customer who has been served, finishing being served and departing: the length of time required for serving an individual customer has a general distribution function. The lengths of times between arrivals and of service periods are random variables which are assumed to be statistically independent.

Scheduling policies Customers are typically served on a first-come, first-served basis, other popular scheduling policies include

processor sharing where all jobs in the queue share the service capacity between them equally last-come, first served without preemption where a job in service cannot be interrupted last-come, first served with preemption where a job in service is interrupted by later arrivals, but work is conserved generalized foreground-background (FB) scheduling also known as least-attained-service where the jobs which have received least processing time so far are served first and jobs which have received equal service time share service capacity using processor sharing shortest job first without preemption (SJF) where the job with the smallest size receives service and cannot be interrupted until service completes preemptive shortest job first where at any moment in time the job with the smallest original size is served shortest remaining processing time (SRPT) where the next job to serve is that with the smallest remaining processing requirement Service policies are often evaluated by comparing the mean sojourn time in the queue. If service times that jobs require are known on arrival then the optimal scheduling policy is SRPT. Policies can also be evaluated using a measure of fairness.

Queue length

Pollaczek–Khinchine method The probability generating function of the stationary queue length distribution is given by the Pollaczek–Khinchine transform equation

π(z)=(1−z)(1−ρ)g(λ(1−z))g(λ(1−z))−z where g(s) is the Laplace transform of the service time probability density function. In the case of an M/M/1 queue where service times are exponentially distributed with parameter μ, g(s) = μ/(μ + s). This can be solved for individual state probabilities either using by direct computation or using the method of supplementary variables. The Pollaczek–Khinchine formula gives the mean queue length and mean waiting time in the system.

Matrix analytic method

Consider the embedded Markov chain of the M/G/1 queue, where the time points selected are immediately after the moment of departure. The customer being served (if there is one) has received zero seconds of service. Between departures, there can be 0, 1, 2, 3,... arrivals. So from state i the chain can move to state i – 1, i, i + 1, i + 2, .... The embedded Markov chain has transition matrix

P=(a0a1a2a3a4⋯a0a1a2a3a4⋯0a0a1a2a3⋯00a0a1a2⋯000a0a1⋯⋮⋮⋮⋮⋮⋱) where

av=∫0∞e−λu(λu)vv!dF(u) for v≥0 and F(u) is the service time distribution and λ the Poisson arrival rate of jobs to the queue. Markov chains with generator matrices or block matrices of this form are called M/G/1 type Markov chains, a term coined by Marcel F. Neuts. An M/G/1 queue has a stationary distribution if and only if the traffic intensity ρ=λ𝔼(G) is less than 1, in which case the unique such distribution has probability-generating function:

G(s)=(1−ρ)(1−s)1−s/MS(λ(s−1)) where MS is the moment-generating function of a general service time. The stationary distribution of an M/G/1 type Markov model can be computed using the matrix analytic method.

Busy period The busy period is the time spent in states 1,2,3,... between visits to the state 0. The expected length of a busy period is 1μ−λ where 1μ is the expected length of service time and λ the rate of the Poisson process governing arrivals. Let ϕ(s) denote the Laplace transform of the busy period probability density function (so ϕ(s) is also the Laplace–Stieltjes transform of the busy period cumulative distribution function). Then ϕ(s) can be shown to obey the Kendall functional equation

ϕ(s)=g[s+λ−λϕ(s)] where as above g is the Laplace–Stieltjes transform of the service time distribution function. This relationship can only be solved exactly in special cases (such as the M/M/1 queue), but for any s the value of ϕ(s) can be calculated and by iteration with upper and lower bounds the distribution function numerically computed.

Sojourn time Writing S*(s) for the Laplace–Stieltjes transform of the sojourn time distribution, is given by the Pollaczek–Khinchine transform as

S∗(s)=(1−ρ)sg(s)s−λ(1−g(s)) where g(s) is the Laplace–Stieltjes transform of service time probability density function.

Waiting/response time Writing W*(s) for the Laplace–Stieltjes transform of the waiting time distribution, is given by the Pollaczek–Khinchine transform as

W∗(s)=(1−ρ)ss−λ(1−g(s)) where g(s) is the Laplace–Stieltjes transform of service time probability density function.

Arrival theorem As the arrivals are determined by a Poisson process, the arrival theorem holds.

Multiple servers

Many metrics for the M/G/k queue with k servers remain an open problem, though some approximations and bounds are known.

See also M/M/1 queue M/M/c queue

References

Worked examples

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

Start with the simplest possible case. Write down what M/G/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/G/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/G/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/G/1 queue

In research
M/G/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/G/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/G/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/G/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/G/1 queue” →

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

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what M/G/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/G/1 queue out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

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

In queueing theory, a discipline within the mathematical theory of probability, an M/G/1 queue is a queue model where arrivals are Markovian (modulated by a Poisson process), service times have a General distribution and there is a single server. The model name is written in Kendall's notation, and…

Why does M/G/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/G/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/G/1 queue.

Tags

  • Single queueing nodes

Keep exploring