World Library  
Flag as Inappropriate
Email this Article

M/G/1 queue

Article Id: WHEBN0033378064
Reproduction Date:

Title: M/G/1 queue  
Author: World Heritage Encyclopedia
Language: English
Subject: G/M/1 queue, Fluid queue, M/G/k queue, Queueing theory, M/D/1 queue
Collection: Single Queueing Nodes, Stochastic Processes
Publisher: World Heritage Encyclopedia

M/G/1 queue

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.[1] 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.[2]


  • Model definition 1
    • Scheduling policies 1.1
  • Queue length 2
    • Pollaczek–Khinchine method 2.1
    • Matrix analytic method 2.2
  • Busy period 3
  • Waiting/response time 4
  • Arrival theorem 5
  • Multiple servers 6
  • References 7

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[3]
  • 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[3]
  • 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[4]
  • shortest remaining processing time (SRPT) where the next job to serve is that with the smallest remaining processing requirement[5]

Service policies are often evaluated by comparing mean sojourn times in the queue. If service times that jobs require are known on arrival then the optimal scheduling policy is SRPT.[6]:296

Policies can also be evaluated using a measure of fairness.[7]

Queue length

Pollaczek–Khinchine method

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

\pi(z) = \frac{(1-z)(1-\rho)g(\lambda(1-z))}{g(\lambda(1-z))-z}

where g(s) is the Laplace transform of the service time probability density function.[8] 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.[9][10]

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, ….[11] The embedded Markov chain has transition matrix

P = \begin{pmatrix} a_0 & a_1 & a_2 & a_3 & a_4 & \cdots \\ a_0 & a_1 & a_2 & a_3 & a_4 & \cdots \\ 0 & a_0 & a_1 & a_2 & a_3 & \cdots \\ 0 & 0 & a_0 & a_1 & a_2 & \cdots \\ 0 & 0 & 0 & a_0 & a_1 & \cdots \\ \vdots & \vdots & \vdots & \vdots & \vdots & \ddots \end{pmatrix}


a_v = \int_0^\infty e^{-\lambda u} \frac{(\lambda u)^v}{v!} \text{d}F(u) ~\text{ for } v \geq 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,[12] a term coined by M. F. Neuts.[13][14] The stationary distribution of an M/G/1 type Markov model can be computed using the matrix analytic method.[15]

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.[16] The busy period probability density function \phi(s) can be shown to obey the Kendall functional equation[17][18]:92

\phi(s) = g[s+\lambda - \lambda \phi(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.[19]

Waiting/response time

Writing W*(s) for the Laplace–Stieltjes transform transform of the waiting time distribution,[20] is given by the Pollaczek–Khinchine transform as

W^\ast(s) = \frac{(1-\rho)s g(s)}{s-\lambda(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.


  1. ^  
  2. ^ a b  
  3. ^ a b Harchol-Balter, M. (2012). "Performance Modeling and Design of Computer Systems". p. 482.  
  4. ^ Harchol-Balter, M. (2012). "Performance Modeling and Design of Computer Systems". p. 508.  
  5. ^ Harchol-Balter, M. (2012). "Performance Modeling and Design of Computer Systems". p. 518.  
  6. ^ Gautam, Natarajan (2012). Analysis of Queues: Methods and Applications. CRC Press.  
  7. ^  
  8. ^ Peterson, G. D.; Chamberlain, R. D. (1996). "Parallel application performance in a shared resource environment". Distributed Systems Engineering 3: 9.  
  9. ^  
  10. ^  
  11. ^ Stewart, William J. (2009). Probability, Markov chains, queues, and simulation. Princeton University Press. p. 510.  
  12. ^ Neuts, Marcel F. (1981). Matrix-geometric solutions in stochastic models: an algorithmic approach (Johns Hopkins Studies in Mathematical Sciences).  
  13. ^ Neuts, M. F . (1989). "Structured Stochastic Matrices of M/G/1 Type and Their Applications". New York: Marcel Dekk. 
  14. ^ Meini, B. (1998). "Solving m/g/l type markov chains: Recent advances and applications". Communications in Statistics. Stochastic Models 14: 479–496.  
  15. ^ Bini, D. A.; Latouche, G.; Meini, B. (2005). "Numerical Methods for Structured Markov Chains".  
  16. ^ Ross, Sheldon M.; Seshadri, Sridhar (1999). "Hitting time in an M/G/1 queue". Journal of Applied Probability: 934–940.  
  17. ^ Abate, J.; Choudhury, G. L.;  
  18. ^ Mitrani, I. (1997). "Probabilistic Modelling". Cambridge University Press. pp. 74–121.  
  19. ^ Abate, J.;  
  20. ^ Daigle, John N. (2005). "Queueing Theory with Applications to Packet Telecommunication". pp. 159–223.  
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.