M/G/1 queue
   HOME

TheInfoList



OR:

In queueing theory, a discipline within the mathematical
theory of probability Probability theory is the branch of mathematics concerned with probability. Although there are several different probability interpretations, probability theory treats the concept in a rigorous mathematical manner by expressing it through a set o ...
, an M/G/1 queue is a queue model where arrivals are Markovian (modulated by a Poisson process), service times have a General
distribution Distribution may refer to: Mathematics * Distribution (mathematics), generalized functions used to formulate solutions of partial differential equations *Probability distribution, the probability of a particular value or value range of a vari ...
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 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 expone ...
, 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 A hard disk drive (HDD), hard disk, hard drive, or fixed disk is an electro-mechanical data storage device that stores and retrieves digital data using magnetic storage with one or more rigid rapidly rotating platters coated with magn ...
.


Model definition

A queue represented by a M/G/1 queue is a stochastic process whose state space is the set , 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 In probability theory and statistics, the exponential distribution is the probability distribution of the time between events in a Poisson point process, i.e., a process in which events occur continuously and independently at a constant average ...
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 variable A random variable (also called random quantity, aleatory variable, or stochastic variable) is a mathematical formalization of a quantity or object which depends on random events. It is a mapping or a function from possible outcomes (e.g., the po ...
s 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 Shortest job next (SJN), also known as shortest job first (SJF) or shortest process next (SPN), is a scheduling policy that selects for execution the waiting process with the smallest execution time. SJN is a non- preemptive algorithm. Shortest ...
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 Shortest remaining time, also known as shortest remaining time first (SRTF), is a scheduling method that is a preemptive version of shortest job next scheduling. In this scheduling algorithm, the process with the smallest amount of time remain ...
(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 The mean sojourn time (or sometimes mean waiting time) for an object in a system is the amount of time an object is expected to spend in a system before leaving the system for good. Calculation Imagine you are standing in line to buy a ticket ...
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 :\pi(z) = \frac where g(''s'') is the Laplace transform of the service time probability density function. In the case of an
M/M/1 queue 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 expone ...
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 In queueing theory, a discipline within the mathematical theory of probability, the Pollaczek–Khinchine formula states a relationship between the queue length and service time distribution Laplace transforms for an M/G/1 queue (where jobs arriv ...
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 A Markov chain or Markov process is a stochastic model describing a sequence of possible events in which the probability of each event depends only on the state attained in the previous event. Informally, this may be thought of as, "What happen ...
has transition matrix :P = \begin 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 where :a_v = \int_0^\infty e^ \frac \textF(u) ~\text 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, a term coined by M. F. Neuts. An M/G/1 queue has a stationary distribution if and only if the traffic intensity \rho=\lambda \mathbb(G) is less than 1, in which case the unique such distribution has probability-generating function: :G(s)=\frac where M_S 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. The busy period
probability density function In probability theory, a probability density function (PDF), or density of a continuous random variable, is a function whose value at any given sample (or point) in the sample space (the set of possible values taken by the random variable) ca ...
\phi(s) can be shown to obey the Kendall functional equation ::\phi(s) = g +\lambda - \lambda \phi(s)/math> 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 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 expone ...
), but for any ''s'' the value of ϕ(''s'') can be calculated and by iteration with upper and lower bounds the distribution function numerically computed.


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^\ast(s) = \frac 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 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 expone ...
*
M/M/c queue In queueing theory, a discipline within , the queue (or Erlang–T model) is a multi-server queueing model. In Kendall's notation it describes a system where arrivals form a single queue and are governed by a , there are servers, and job service t ...


References

{{DEFAULTSORT:M G 1 queue Single queueing nodes