A queue represented by a M/G/1 queue is a stochastic process whosestate 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 statei toi + 1 represent the arrival of a new customer: the times between such arrivals have anexponential distribution with parameter λ. Transitions from statei toi − 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 arerandom variables which are assumed to bestatistically independent.
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]
Service policies are often evaluated by comparing themean sojourn time 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]
where g(s) is the Laplace transform of the service time probability density function.[8] In the case of anM/M/1 queue where service times are exponentially distributed with parameterμ, g(s) = μ/(μ + s).
Recently, thePollaczek–Khinchine formula has been extended to the case of infinite service moments, thanks to the use of Robinson's Non-Standard Analysis.[11]
Consider theembedded 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 statei the chain can move to statei – 1,i,i + 1,i + 2, ....[12] The embeddedMarkov chain hastransition matrix
where
andF(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,[13] a term coined byMarcel F. Neuts.[14][15]
An M/G/1 queue has a stationary distribution if and only if the traffic intensity is less than 1, in which case the unique such distribution hasprobability-generating function:[16]
The busy period is the time spent in states between visits to the state. Theexpected length of a busy period is where is theexpected length of service time and the rate of the Poisson process governing arrivals.[18] Let denote theLaplace transform of the busy periodprobability density function (so is also theLaplace–Stieltjes transform of the busy period cumulative distribution function). Then can be shown to obey the Kendall functional equation[19][20]: 92
where as above is the Laplace–Stieltjes transform of the service time distribution function. This relationship can only be solved exactly in special cases (such as theM/M/1 queue), but for any the value of can be calculated and by iteration with upper and lower bounds the distribution function numerically computed.[21]
^Fiorini, Francesco; Cococcioni, Marco; Pagano, Michele (2024). "Extending the Applicability of the Pollaczek-Khinchin Formula to the Case of Infinite Service Moments".IEEE Transactions on Communications.73 (4):2313–2328.doi:10.1109/TCOMM.2024.3476126.ISSN0090-6778.
^Neuts, Marcel F. (1981).Matrix-geometric solutions in stochastic models: an algorithmic approach (Johns Hopkins Studies in Mathematical Sciences).Johns Hopkins University Press. p. 2.ISBN0-486-68342-7.
^Neuts, M. F . (1989). "Structured Stochastic Matrices of M/G/1 Type and Their Applications". New York: Marcel Dekk.{{cite journal}}:Cite journal requires|journal= (help)
^Meini, B. (1998). "Solving m/g/l type markov chains: Recent advances and applications".Communications in Statistics. Stochastic Models.14 (1–2):479–496.doi:10.1080/15326349808807483.
^Grimmett, G. R.; Stirzaker, D. R. (1992).Probability and Random Processes (second ed.). Oxford University Press. p. 422.ISBN0198572220.