Professional Documents
Culture Documents
Carey Williamson
Department of Computer Science
University of Calgary
Motivating Quote for Queueing Models
2
M/M/1 Queue
0 1 2 … j-1 j j+1
m m m m
3
Results for M/M/1 Queue (cont’d)
4
Results for M/M/1 Queue (cont’d)
5
M/M/1/K – Single Server, Finite Queuing Space
K
K
6
Analytic Results
State-transition diagram:
l l l l
0 1 … K-1 K
m m m m
Solution p n p0 ,
n
where
1
1
p0 n 0 n 1
K 1 K 1
1 1
K 1
7
M/M/m - Multiple Servers
8
Analytic Results
State-transition diagram:
l l l l l l
0 1 … m-1 m m+1
m 2m (m-1)m mm m m
Solution n 1
n 1 p0 nm
pn p0 j
n!
j 0 j 1 1
p0 n
nm
m!m n m
9
M/M/ - Infinite Servers
10
Analytic Results
State-transition
diagram:
l l l l l l
0 1 … j-1 j j+1
m 2m (j-1)m jm (j+1) (j+2)
1
Solution pn p0 n
n!
1
n 1
p0 n 0 e
n!
Thus the number of customers in the system follows a Poisson
distribution with rate
11
M/G/1 Queue
Single-server
queue with Poisson arrivals, general
service time distribution, and unlimited capacity
Suppose service times have mean and variance
For , the steady-state results for are:
/ , p0 1
2 (1 2 2 ) 2 (1 2 2 )
E[n] , E[nq ]
2(1 ) 2(1 )
1 (1 / 2 2 ) (1 / 2 2 )
E[r ] , E[ w]
2(1 ) 2(1 )
12
M/G/1 Queue
13
Effect of Utilization and Service Variability
For
almost all queues, if lines are too long, they can be reduced by
decreasing server utilization () or by decreasing the service time
variability ()
— The larger is, the more variable is the distribution relative to its
expected value.
Pollaczek-Khinchin (PK) mean value formula:
2 (1 (CV ) 2 )
E[n]
2(1 ) 14
Effect of Utilization and Service Variability
15