Chapter 7
Chapter 7
Chapter 7
Queuing Theory
Babita Goyal
Key words: queue, waiting time, customer, server, service time, queue discipline, expected waiting time,
expected service time, arrival process, service time distribution, departure process, steady-state system.
Suggested readings:
1. Swarup, K., Gupta, P.K. and Man Mohan (2001), Operations research, Sultan Chand and Sons.
3. Feller, W.(1968), An introduction to Probability Theory and its Applications, Vol. I ,Wiley, New
4. Karlin, S. and Taylor, H.M.(1975), A first course in Stochastic Processes, Academic Press.
168
7.1 Introduction
As discussed earlier, a flow of customers from an infinite/finite source (population) towards a service facility
forms a queue (waiting line) on account of lack of capability to serve them all at a time. Thus a queuing system
may be described as the flow of units towards a system in the hope of getting service, forming or joining a
queue, if service is not immediately available and leaving the system after being served.
Waiting phenomenon is the direct consequence of randomness in the phenomenon of interaction between the
system and the customers and in the operation of service facilities. In general, the customers' arrival and their
service times are not known in advance, for otherwise the operation of the facility could be scheduled in such a
The objective of the queuing theory is the study of the operations of a service facility under random conditions
in order to secure some characteristics that measure the performance of the system under study. For example, a
logical measure of performance is how long a customer is expected to wait before being served. Another
measure is the percentage of time the service facilities are not in use. The first measure looks at the system from
the customers' point of view whereas the second measure evaluates the degree of utilization of the service
facility, i.e., from the management's point of view. Obviously, the larger the customers' waiting time, the smaller
is the percentage of time the facility will remain idle, and vice-versa. A longer waiting time may have a negative
impact on the new arrivals as the customers may be reluctant to very long waiting periods. However, if the
service facility is not utilized to its optimum capacity, it may increase the cost of service operations. Then the
A customer arrives at a service facility and joins a queue. The server chooses a customer from the queue to
begin service. Upon the completion of a service, the process of choosing a new customer from the queue is
169
repeated. It is assumed that no time is lost between the release of a serviced customer and admission of a new
Two principal components of a queuing model, viz., the customer and the server interact only for the period of
time the customer needs to complete his service. The basic elements of a queuing model depend on the
following factors:
1. Input processes:
2. Service processes:
1. Input processes: Various components of input processes of a queuing model can be described as follows:
1. Arrival distribution: In queuing models, the customer arrivals are summarized in terms of a
probability distribution, which is known as the arrival distribution. The customers may arrive at the service
facility in batches of fixed sizes or of variable sizes or one-by-one. If two or more customers arrive the
2. Queue size: The queue size may be finite or infinite depending upon the capacity of the system. If the
queue size is finite and the queue fills to the capacity, new arrivals are denied service. These arrivals may be
lost forever.
170
3. Calling source: This is the source from which calls for service (arrival of customers) are generated.
The calling source may be of finite or infinite capacity. In case of a finite source, an arrival affects the rate
4. Human behavior: Queuing models representing the situations in which human beings take the role of
customers and/or servers must be designed to account for the effect of human behavior. A "human" server
may speed up the rate of service when the queue builds up in size. A "human" customer may jockey from
one queue to another in the hope of reducing waiting time. Some "human" customers may also balk from
joining a queue because they anticipate a long waiting or they may renege after being in queue for a while
because their wait has been too long. However, a long wait for one person may not be as long as for
another. All customers in the queue are expected to behave equally while in the facility.
2. Service processes: These are the processes related to the service providing mechanism of the system and
1. Service-time distribution: Service-time distribution represents the service offered in terms of service
time. The service may be offered individually (as in banks) or in groups (as in restaurants). The queues in
2. Design of the service facility: The service facility may include one or more servers. If there are
infinite number of servers then all the arriving customers are serviced instantaneously on arrival and there
will be no queue. In case all the servers offer the same service, the system is said to have parallel channels.
On the other hand, the service may comprise of a number of series stations through which the customer has
to pass before the service is completed (e.g., processing of a product on a sequence of machines). In this
case, waiting lines may or may not be allowed between the stations. Such queues are called the queues in
series or the queues in tandem. The most general design of a service facility includes both series and
171
3. Service discipline: This is the rule according to which customers are selected for the service when a
queue has been formed. The most common disciplines are the FCFS (first come, first served) and SIRO
(service in random order). Another service discipline is LCFS (last come, first served). The customers
arriving at the facility may be put in priority queues such that those with a higher priority will receive
preference to start service with (pre-emptive service) or a customer of low priority is serviced before a
customer of higher priority (non pre-emptive service). Another service discipline is processor sharing, when
1
m customers receive service simultaneously at the rate each.
m
In case of parallel channels, FSR (fastest service rule) is adopted, i.e., on customer's arrival if only one
server is free, then the incoming customer is assigned to that server and if more than one server are free,
then the customer is assigned to a server having the largest service rate among the free ones.
As we discussed earlier also, queuing models are stochastic models and they need probability distributions to be
We have seen that if a sequence of events (arrivals or departures in case of queuing models) occur
according to a Poisson process, then the inter-event time is distributed exponentially with the same
parameter as that of the occurrence process. A queuing system may be identified as a birth (-death) process.
Arrival process: In this model, events are pure arrivals and no departures are there, i.e., once a unit joins
the system as a customer, it never departs. This is a pure birth process. Examples are registrations of birth,
( λt )
n
− λt
p ( t ) = P ( n arrivals in an interval of length t ) = e , n = 0,1, 2...
n n
Departure process: This is a pure death process, which assumes that the system starts with a given number
of customers who leave the facility at a rate µ after being serviced while no fresh arrivals are allowed to join
172
the system. As an example, consider an inventory stock where N items have been made available at the
beginning of the stocking period. No fresh stock are added to the inventory till the next period starts and
existing stock is used sequentially at a rate of µ units per unit of time, i.e., if
then
− µh
q (h) = e 1 − µ h , for very small h .
0
q (h) = 1 − q (h) µh
1 0
q ( t + h ) = q ( t )(1 − µ h ) + q (t ) µ h; 1 ≤ n ≤ N
n n n −1
= q (t ) + q (t ) µ h; n = N
N N −1
− µt
e
⇒ q ( t ) = ( µt )
n
; n = 0,1, 2,... N − 1
n n
N −1
= 1 − ∑ q ( t ); n = N
n=0 n
and
Arrival-departure process: This is the general birth-death process where arrivals and departure occur
simultaneously. Customers arrive (births occur) at a rate λ and after getting service, they depart (deaths
These characteristics provide a measure for the evaluation of efficiency of a queuing model and are needed
to design a new system. A queuing model can be a transient system or a steady-state system.
173
Transient system: If the operating characteristics of the system are functions of time, then the system is
Steady-state system: If the operating characteristics of the system are independent of time, then the system
is called a steady-state system. Most of the queuing systems are designed to be steady-state systems, i.e., the
Following characteristics are used to study the performance of the system under steady-state conditions:
1. Expected number of customers in the system: Denoted by E (n) or Ls, expected number of customers
in the system is the average number of customers, both in the queue and the service, where n is a realization
2. Expected number of customers in the queue: Denoted by Lq, expected number of customers in the
3. Expected waiting time in the system: Denoted by Ws, expected waiting time in the system is the
average total time a customer spends in the system. It includes his waiting as well as service time.
4. Expected waiting time in the queue: Denoted by Wq, expected waiting time in the queue is the
average total time a customer spends in the waiting on joining the system before being served.
5. Server utilization factor (busy period or traffic intensity): Denoted by ρ, the server utilization factor
is the proportion of time that a server is actually busy in providing service to the customers.
If p is the steady-state probability of n customers in the system, then we have the following relations:
n
∞
(i) Ls = ∑ np
n =0 n
∞
Lq = ∑ ( n − c ) p ; c is the number of servers in the system.
n=c n
174
Ls = λWs
Lq = λWq
(iii) If the system capacity is finite, then the effective arrival rate for those who join the system is not
same as the arrival rate as the pressure of new arrivals diminishes once the system tends to approach
saturation point and if the effective arrival rate is denoted by λeff , then in general
Ls = λeff Ws
Lq = λeff Wq
1
(iv) If µ is the service rate, then the expected waiting time in the service is , so
µ
1
Ws = Wq +
µ
λ
or, λ Ws = λ Wq +
µ
λ
⇒ Ls = Lq + or, λ = µ ( Ls − Lq )
µ
and as the relation holds for λeff in case of finite system capacity also so, ,
λeff = µ ( Ls − Lq )
∞ Ls 1
p → Ls = ∑ np → Ws = → Wq = Ws − → Lq = λWq
n n =0 n λ µ
As we have seen earlier, a queuing system can be identified with its major characteristics. Kendall developed a
standard set of notations to represent a queuing system, which was further modified by Lee. These notations are
now-a-days known as Kendall-Lee notations. The major characteristics of a queuing system are represented as
( a / b / c ); ( d / e / f )
175
where,
a ≡ arrival distribution
b ≡ service time (departure) distribution
c ≡ number of parallel servers ( c = 1, 2,...∞ )
The arrival and departure distributions can be according to the following rules:
1. If arrivals (departures) are according to a Poisson (Markovian) distribution i.e., exponential inter-
2. If inter-arrival (service) time is deterministic, then the distribution is denoted by the letter D.
3. If inter-arrival (service) time is an Erlang (gamma with parameter k) distribution, then the distribution
4. In case, the inter-arrival times are according to some general distribution but are independent, then the
5. In case, the inter-arrival times are according to some general distribution, then the letter G denotes the
distribution.
The queuing system follows Poisson arrivals, service-time is deterministic, 10 parallel servers are there in the
system, general service discipline, system capacity is finite and the system can accommodate at the most N
customers including those in the service and arrivals are being generated from a source of infinite capacity.
Now, we study some queuing systems, which are Poisson processes. In these systems, the service discipline is
general except for the cases where waiting time distribution have been obtained in which case, the service
discipline is FCFS.
176
7.5.1 ( M / M / 1); ( GD / ∞ / ∞ )
This is a single server model with infinite system capacity, where both arrival and departure process are Poisson
processes. For this system, we want to obtain steady-state probability and study the operational characteristics of
the system.
This is a birth-death process with birth rate, say, λ and death rate, say, µ. Then the differential-difference
p '( t ) = − ( λ + µ ) p ( t ) + λ p (t ) + µ p ( t ); n > 0
n n n −1 n +1
p '( t ) = − λ p ( t ) + µ p ( t )
0 0 1
pn '( t ) → 0, and pn ( t ) → pn
λp +µp − (λ + µ ) p = 0; n > 0
n −1 n +1 n
λp −µp = 0
0 1
( ρ + 1) p = p +p (7.2)
0 0 1
λ
where ρ = is the traffic intensity.
µ
Multiplying (7.1) by sn, summing over all possible values of n and adding the resultant sum to (7.2), we have
∞ ∞ ∞
⇒ ( ρ + 1) ∑ p s + ( ρ + 1) p = ρ∑ p
n n n
s +∑ p s +p +p
n =1 n 0 n =1 n −1 n =1 n +1 0
1
1 s −1
⇒ ( ρ + 1) P ( s ) = ρ sP ( s ) + P(s) + p
s s 0
177
⎛ ρ +1− ρs − 1 ⎞ P(s) = s −1 p
or, ⎜ ⎟
⎝ s⎠ s 0
s −1 1 −1
P(s) = p = p = p (1 − ρ s )
or, ( s − 1) − ρ s ( s − 1) 0 1− ρs 0 0
= p ρ , n = 0,1, 2...
n
⇒ p
n 0
∞ ∞
= 1 = p ∑ ρ
n
and as ∑ p
n =0 n 0 n=0
p
⇒ 0
= 1 provided ρ < 1
1− ρ
λ
⇒ p = 1− ρ = 1−
0 µ
n
⎛ λ ⎞⎛ λ ⎞
= p ρ = (1 − ρ ) ρ
n
= ⎜1 − ⎟ ⎜ ⎟
n
and, p
n 0
⎝ µ ⎠⎝ µ ⎠
∞ ∞ d ∞
= ∑ n (1 − ρ ) ρ = ρ (1 − ρ ) ∑ ρ
n n
(i) Ls = ∑ np
n =0 n n =0 dρ n=0
d ⎛ 1 ⎞
= ρ (1 − ρ ) ⎜ ⎟
dρ ⎝1− ρ ⎠
ρ λ
= = = E (n)
1− ρ µ −λ
λ ρ λ
2 2
(ii) Lq = Ls − = =
µ (1 − ρ ) µ (µ − λ)
Ls 1 1
(iii) Ws = = =
λ µ (1 − ρ ) µ −λ
Lq ρ λ
(iv) Wq = = =
λ µ (1 − ρ ) µ (µ − λ )
178
(ii) The probability that the queue size will be greater than or equal to n, the number of customers in the
system is given by
∞ ∞
∑ (1 − ρ ) ρ
k
P (queue length ≥ n ) = ∑ p =
k =n k k =n
(1 − ρ ) ρ
n
= ρ
n
=
1− ρ
λ µ
2
E ( n − 1) 1
E ( n − 1 | n − 1 > 0) = = =
P ( n > 1) µ (µ − λ ) ⎛ λ ⎞ 2
µ −λ
⎜ ⎟
⎝µ⎠
2
∞ ⎛λ⎞
Q P ( n > 1) = ∑ p − p − p = ⎜ ⎟
n =0 n 0 1
⎝µ⎠
(iv) The fluctuation (variance) of the number of customers in the system is given by
ρ
2
∞ ∞
Var ( n ) = ∑ n p − E ( n ) = ∑ n ρ (1 − ρ ) −
2 2 2 n
(1 − ρ )
2
n=0 n n =0
ρ λµ
= =
(1 − ρ ) (µ − λ )
2 2
(v) We now find the waiting time of the customer, based upon FCFS discipline, who finds n customers
Let τ be the amount of time a person just arriving must wait in the system (until his service is
completed). Then
τ = t1 ' + t2 + ... + tn +1
where t1' is the time needed for the customer in service to complete the service and t2, …,tn are the
service times of n-1 customers ahead in the queue. tn+1 is the service time of the customer who has
179
Let ϖ (τ | n +1) be the conditional p.d.f. of τ given n customers ahead in the system upon the new
− µτ
∞ ∞ e
⇒ ϖ (τ ) = ∑ ϖ (τ | n + 1) p = ∑ µ ( µτ ) (1 − ρ ) ρ
n n
n=0 n n=0 n
( µρτ )
n
∞
− µτ
= (1 − ρ ) µ e ∑
n=0 n
− µ (1− ρ ) τ
= (1 − ρ ) µ e ; τ >0
E (τ ) =
1 ⎛ = Ls ⎞
⎜ ⎟
µ (1 − ρ ) ⎝ λ ⎠
An interesting feature of the waiting time distribution is that the probability p for an
n
waiting times in the queue as well as system are completely independent of the service discipline,
still the probability distribution of the waiting time depends on the type of service discipline used.
(See Feller). However, whatever is the service discipline, the expected waiting time must remain
the same.
Ws
(vi) P ( a customer has to wait mote than Ws ) = P (τ > Ws ) = 1 − ∫ ϖ (τ ) dτ
0
− µ (1− ρ ) Ws −1
= e = e ≈ 0.368
i.e., under FCFS scheme, 36.8% customers will have to wait more than the average waiting time.
(vii) However, the waiting time of a customer before he gets the service is given by the probability
∞
− ( µ −λ )τ
ψ (τ ') = ∑ ψ (τ ' | n ) p = (1 − ρ ) λ e ; τ >0
n=0 n
180
Examples
(1) A worker in an assembling unit of a factory finds that a typical assembling job, on average requires
30 minutes whereas the jobs are independently distributed exponentially. The jobs are to be
performed on a FCFS basis. If jobs arrive on an average rate of 10 per 8-hour shift according to a
Poisson rule, find (i) his expected busy time per day (ii) the number of jobs ahead of the job just
arrived.
Sol: The arrival rate λ = 10 jobs per day and the service rate µ = 16 jobs per day.
λ 10
∴ P ( the worker remains busy) = ρ = = = 0.625
µ 16
(i) Expected busy time per day = duration of the day × ρ = 8 × 0.625 = 5 hrs/day.
(ii) The number of jobs ahead of the job just arrived is the expected number of jobs in the system
ρ 0.625
∴ E (n) = = ≈ 2 (Jobs cannot be in fractions)
1− ρ 0.375
(2) The rate of arrival of customers at a public telephone booth follows Poisson distribution with an
(a) What is the probability that a person arriving at the booth will have to wait?
(b) What is the average length of the non-empty queue that forms from time to time?
(c) The owner company of the booth is planning to install a second booth when convinced
that the expected waiting time for the customers is at least 3 minutes. What should be the
pattern of flow of customers in order to have a justification for the second booth?
(d) Estimate the fraction of the day the phone will be in use.
(e) What is the probability that a new arrival will have to spend 10 minutes in all in the
system?
181
1 1
λ = × 60 = 6 per hour and µ = × 60 = 20 per hour
10 3
λ 6
and ρ = = = 0.3
µ 20
⎛ λ⎞
= 1 − ⎜1 − ⎟ = 0.3
⎝ µ⎠
µ
(b) Average length of non-empty queue E ( m | m > 0) = = 1.43
µ −λ
(c) The second booth will be installed if the expected waiting time is at least 3 minutes,
i.e., the arrival rate has to be more than the current arrival rate. Let λ' be the new arrival
rate. Then
λ' 3 λ'
E (τ ') = ⇒ =
µ ( µ − λ ') 60 20(20 − λ ')
⇒ λ ' = 10 per hour.
(d) The fraction of time the phone is busy is the traffic intensity ρ = 0.3.
∞
⎛ λ⎞ − ( µ −λ )t
(e) P (τ ≥ 0) = ∫ λ ⎜ 1 − ⎟e dt = 0.03
10 ⎝ µ⎠
i.e., on average 3% of the arrivals will have to spend 10 or more minutes before leaving
(3) In the production shop of a company, the break down of machines is found to be Poisson with an
average rate of 3 machines per hour. Break down time at one-machine costs Rs. 40 per hour to the
company. There are two choices before the company for hiring the repairman. One of the repairman
is slow but cheap, the other is fast but expensive. The slow-cheap repairman demands Rs.20 per hour
and will repair the broken down machines exponentially at a rate of 4 per hour. The fast-expensive
repairman demands Rs. 30 per hour and will repair the machines exponentially at a rate of 6
182
3
λ = 3 machines / hour ; µ = 4 machines / hour ⇒ ρ =
4
1 1
and average down-time of a machine = Lq = = = 1hr .
µ (1 − ρ )
4 ()
1
4
1
λ = 3 machines / hour ; µ = 6 machines / hour ⇒ ρ =
2
1 1 1
and average down-time of a machine = Lq = = = hrs .
µ (1 − ρ ) ⎛1⎞
6⎜ ⎟
3
⎝2⎠
1
So average down-time of 3 machines which arrive in 1 hr . = 3 × = 1hr .
3
183
7.5.2 ( M / M / 1); ( GD / N / ∞)
This is a single server model with finite system capacity N, i.e., maximum permissible queue length is N-1 and
all the new arrivals either balk or are not allowed to join the system. As a result, the effective arrival rate λeff
becomes a function of number of customers present in the system and is less than the rate λ at which the
customers are generated. Arrival and departure, both processes are Poisson processes. For this system, we want
to obtain steady-state probability and study the operational characteristics of the system.
p '( t ) = − λ p ( t ) + µ p ( t ); n = 0
0 0 1
p '( t ) = − ( λ + µ ) p ( t ) + λ p (t ) + µ p ( t ); 0 < n ≤ N − 1
n n n −1 n +1
p '( t ) = − µ p ( t ) + λ p ( t ); n = N
N N N −1
( as p ( t + h ) = p ( t )(1 − µ h ) + p ( t )( λ h )(1 − µ h ))
N N N −1
−ρ p + p = 0
0 1
− (1 + ρ ) p + p +ρp = 0; 0 < n ≤ N − 1
n n +1 n −1
−p + ρp = 0; n = N
N N −1
N N −1 N
⇒ ( ρ + 1) ∑ p s s +ρ∑ p s + p +ρp s
n n n N
= ∑ p
n =1 n n =1 n +1 n =1 n −1 0 N
⇒ ( ρ + 1) P ( s ) =
1
s
(P(s) − p ) + ρs (P(s) − p
0 N
s
N
)+ p 0
+ρp s
N
N
⎛1 ⎞ ⎛ 1⎞
= ⎜ + ρ s ⎟ P ( s ) + ⎜1 − ⎟ p + ( s − 1) ρ p s
N
⎝s ⎠ ⎝ s⎠ 0 N
or,
−1 N +1 −1
P ( s ) = p (1 − ρ s ) −ρp s (1 − ρ s )
0 N
n
⇒ p = coefficient of s in P ( s )
n
184
n− N n− N
p ρ −p ρ = p ρ −p ρ ρ
n n N
and as = 0
0 N 0 0
= p ρ ; n = 0,1, 2,..., N
n
⇒ p
n 0
N +1
N ⎛1− ρ ⎞
and as p ∑ ρ
n
= 1 ⇒ p ⎜ ⎟ = 1
0 n =0 0
⎝ 1− ρ ⎠
1− ρ ⎛ 1− ρ ⎞ n
⇒ p = N +1
; and p = ⎜ N +1 ⎟
ρ ; n = 0,1, 2,..., N
0 1− ρ n
⎝1− ρ ⎠
⎧ ⎛ 1− ρ ⎞ n
⎪ ⎜⎝ 1 − ρ N +1 ⎟⎠ ρ ; ρ ≠ 1,
⎪
⇒ p = ⎨ n = 0,1, 2,..., N
⎪ 1
n
⎪ ; ρ =1
⎩N +1
λ
In this case, ρ = need not be less than 1 as ρ is controlled the number of customers in the system
µ
N +1
∞
1− ρ N
1− ρ d ⎛1− ρ
⎞
(i) Ls = ∑ npn =
1− ρ
N +1 ∑ nρ
n
=
1− ρ
N +1
ρ ⎜ ⎟
dρ ⎝ 1− ρ ⎠
n=0 n=0
⎧ ρ (1 − ( N + 1) ρ N + N ρ N +1 )
⎪⎪ N +1
; ρ ≠1
(1 − ρ )(1 − ρ )
= ⎨
⎪ N
; ρ =1
⎪⎩ 2
⇒ λeff = λ (1 − p )
N
λeff λ (1 − p )
(ii) Lq = Ls − = Ls − N
µ µ
Lq Lq
(iii) Wq = =
λeff λ (1− p )
N
1 Ls
(iv) Ws = Wq + =
µ λ (1− p N )
185
Example:
(4) At a railway station only one train is handled at one time. The railway yard is sufficient only for two
trains to wait while the other is given signal to leave the station. Trains arrive at the station at an
average rate of 6 per hour and the railway station can handle them at a rate of 12 per hour. Assuming
Poisson arrivals and exponential service time distributions, find the steady-state probabilities for
various numbers of trains in the system and the average waiting time of a new train coming into the
yard.
λ = 6, and µ = 12 ⇒ ρ = 0.5
N = 2 +1 = 3
1− ρ 0.5
p = P ( no train in the system) = = = 0.53
0 1− ρ N +1 1−(0.5) 4
= p ρ
n
and p
N 0
3
⇒ Ls = ∑ np n = p ρ (1 + 2 ρ + 3 ρ ) = 0.74
2
n=0 0
0.74
and Ws = = 3.8 minutes.
6(1− p3 )
7.5.3 ( M / M / c ); ( GD / ∞ / ∞ )
This is a multi-server model with infinite system capacity with arrival rate λ. Arrival and departure, both
1
processes are Poisson processes. The mean service time for a customer is . The c servers simultaneously
µ
serve c customers, provided c or more customers are there in the system. In that case, the service rate will be cµ.
If the number of customers n in the system is less than c, then n servers will be busy and remaining c-n servers
will be idle. In that case, the service rate will be nµ. For this system, we want to obtain steady-state probabilities
Under steady-state conditions, the differential-difference equations for this process are
186
−(λ + µ ) p + µ p +λ p = 0; n > 0
n n n n +1 n +1 n −1 n −1
−λ p +µ p = 0; n = 0
0 0 1 1
λ0
⇒ p = p
1 µ1 0
λ +µ λ
and, p = n n p − n −1 p ; n > 0
n +1 µn +1 n µn +1 n −1
λ1 + µ1 λ λ +µ λ λ
Now, p = p − 0 p = 1 1 0 p − 0 p
2 µ2 1 µ2 0 µ2 µ1 0 µ2 0
λ0 λ1
= p
µ1µ2 0
λ0 λ1Kλn −1
Let p = p
n µ1µ2Kµn 0
λn + µn λ0 λ1Kλn −1 λn −1 λ0 λ1Kλn − 2
Then, p = − p
n +1 µn +1 µ1µ2Kµn µn +1 µ1µ2Kµn −1 0
λ0 λ1Kλn −1λn
= p
µ1µ2Kµn µn +1 0
n −1
∏ λi
i =0
Thus, for n ≥ 1 p = n
p
∏ µi
n 0
i =1
⎛ n −1 ⎞
∞ ⎜ ∞ ∏ i
λ ⎟
And ∑ pn = 1 ⇒ p ⎜⎜1+ ∑ i =n0 ⎟ = 1
⎟
n=0 0 n =0
⎜ ∏ µi ⎟
⎝ i =1 ⎠
1
⇒ p = n −1
0 ⎛ ⎞
⎜ ∞ ∏ i
λ ⎟
⎜1+ ∑ i = 0 ⎟
⎜ n=0 n ⎟
⎜ ∏ µi ⎟
⎝ i =1 ⎠
187
λn = λ ∀n
⎧⎪nµ , n < c
µn = ⎨
⎪⎩cµ , n > c
⎧ λn
⎪ p , n ≤c
⎪ µ (2 µ )...( nµ ) 0
⎪
∴ p = ⎨ λn
⎪ µ (2 µ )...(( c −1) µ ) ( cµ )( cµ )...( cµ ) p 0 , n > c
(144424443)
n
⎪
⎪ ( n−c ) times
⎩
⎧ λn
⎪ p , n ≤c
⎪µn n 0
= ⎨
⎪ λn
⎪ n n−c p 0 , n > c
⎩µ c c
⎧ρn
⎪ p , n ≤c
⎪ n 0
= ⎨ n
⎪ ρ
⎪ n −c p 0 , n > c
⎩c c
−1
⎛ ⎞
⎜ c −1 n ⎟
ρ ρ c ρ λ
and p = ⎜⎜ ∑ + ⎟ where <1⇒ < 1 ⇒ λ < µc
0 n=0 n ⎛ ρ ⎞⎟ c µc
⎜ c⎜1− ⎟ ⎟
⎝ ⎝ c ⎠⎠
ρ c +1 cρ
(i) Lq = p = p
( c −1)( c − ρ ) 2 0 ( c − ρ )2 c
(ii) Ls = Lq + ρ
Lq
(iii) Wq =
λ
1
(iv) Ws = Wq +
µ
ρ c +1
For ρ much smaller than 1, p ≈ 1 − ρ ; Lq =
0 c2
ρ ( c − ρ ) ( c −1) ρ
And for close to 1, p ≈ ; Lq ≈
c 0 cc c− ρ
188
Example
(5) A small town is being serviced by two cab companies. Both the companies own two cabs and are known
to share the market almost equally. The calls arrive at each company's office at a rate of 10 per hour. The
average time per ride is 11.5 minutes. Arrivals of calls follow a Poisson distribution, whereas ride times
are exponential. In an effort to consolidate two companies, it was observed that utilization factor for each
λ 10
100 × = 100 × = 95.8%
cµ 2×
60
11.5
Is consolidation worth?
We have two independent ( M / M / 2); ( GD / ∞ / ∞ ) with λ = 10 calls/hr. and µ = 5.217 rides/hr. The
λ 10
100 × = 100 × = 95.8% i.e., it is the same for both the queues.
cµ 2×
60
11.5
The expected waiting time in the queue Wq for any of the queue is obtained as follows:
λ 10
ρ = = 1.917
µ 5.217
−1
⎡ ⎤
⎢⎛ 1.917 ⎞0 ⎛ 1.917 ⎞1 (1.917) ⎥⎥
2
p = ⎢⎜ ⎟ +⎜ ⎟ + 0.0212
2⎛⎜1−
0 ⎢⎝ 0 ⎠ ⎝ 1 ⎠ 1.917 ⎞ ⎥
⎢
⎣ ⎝ 2 ⎟⎠ ⎥⎦
1 ⎛ (1.917)3 ×0.0212 ⎞
⇒ Wq = ⎜ ⎟ 2.16 hrs.
10 ⎜⎝ 1(2−1.917)2 ⎟⎠
After consolidation:
λ 20
100 × = 100 × = 95.8%
cµ 4×
60
11.5
189
which is same as the utilization factor for the earlier system. The expected waiting time in the queue Wq
λ 20
ρ = = 3.83
µ 5.217
−1
⎡ ⎤
⎢⎛ 3.83 ⎞0 ⎛ 3.83 ⎞1 ⎛ 3.83 ⎞ 2 ⎛ 3.83 ⎞3 (3.83) ⎥⎥
4
p = ⎢⎜ ⎟ +⎜ ⎟ +⎜ ⎟ +⎜ ⎟ + 0.0042
4⎛⎜1−
0 ⎢⎝ 0 ⎠ ⎝ 1 ⎠ ⎝ 2 ⎠ ⎝ 3 ⎠ 3.83 ⎞ ⎥
⎢
⎣ ⎝ 4 ⎟⎠ ⎥⎦
1 ⎛ (3.83)5 ×0.0042 ⎞
⇒ Wq = ⎜ ⎟ 1.05 hrs.
20 ⎜⎝ 3(4−3.83)2 ⎟⎠
Thus consolidation will reduce the expected waiting time by almost 50% whereas the utilization factor
7.5.4 ( M / M / c );( GD / N / ∞ )
This is a multi-server model with finite system capacity N. The maximum queue size is N- c. Arrival and
⎧⎪λ , 0 ≤ n ≤ N ⎪⎧nµ , 0 ≤ n ≤ c
λn = ⎨ and µn = ⎨
⎪⎩0, n ≥N ⎪⎩cµ , c ≤n ≤N
⎧ρn
⎪ p , 0 ≤n ≤c
⎪ n 0
⇒ p = ⎨ n
n ⎪ ρ
⎪ n−c p 0 , c ≤ n ≤ N
⎩c c
For this system, we want to obtain steady-state probabilities and study the operational characteristics of the
system.
⎧ −1
⎪⎜⎛ ⎛ ⎛ ρ ⎞ N − c +1 ⎞ ⎞
⎪⎜ ρ 1−⎜ ⎟
c
⎜ ⎟ ⎟
⎜ ⎟⎟
⎪⎜ c −1 ρ + ⎝ ⎝ c ⎠ ⎠⎟ ; ρ ≠ 1
n
⎪⎜ ∑
⎪ n=0 n ⎛ ρ ⎞ ⎟ c
p = ⎨⎜ c⎜1− ⎟ ⎟
⎝ c ⎠
0 ⎪⎜⎝ ⎟
⎠
⎪
⎪⎛ c −1 ρ n ρ c ( N −c +1) ⎞ −1 ρ
⎪⎜ ∑ + ⎟⎟ ; =1
⎪⎩⎜⎝ n = 0 n c ⎠ c
190
Performance of the model:
N N −c
(i) Lq = ∑ ( n −c ) p = ∑ j p j +c
n = c +1 n j =1
j −1
ρc ρ N −c ⎛ρ⎞
= p ∑ j⎜ ⎟
0 c c j =1 ⎝c⎠
ρ c +1 ⎡ ⎛ ρ ⎞ N −c ⎛ρ⎞
N −c
⎛ ρ ⎞⎤
= p ⎢1− ⎜c⎟ − ( N − c )⎜c⎟ ⎜1− c ⎟ ⎥
0 ( c −1)( c − ρ ) ⎢⎣ ⎝ ⎠
2
⎝ ⎠ ⎝ ⎠ ⎥⎦
N c ⎛ c ⎞
(ii) Again, Lq = ∑ np n − ∑ np − c ⎜1− ∑ p n ⎟
n=0 n n =0 ⎝ n=0 ⎠
c
⇒ Ls = Lq + ( c − c ) where, c = ∑ ( c− n ) p n
n =0
c
⇒ λeff = Ls − Lq = c − c = c − ∑ ( c− n ) p n = λ (1 − p )
n =0 N
Lq
(iii) Wq =
λeff
1
(iv) Ws = Wq +
µ
Example
(6) If in the earlier example, the owner refuses prospective customers once the waiting list reaches 16
−1
⎡ 3.83 ⎞17 ⎤
⎢ (3.83)4 ⎛⎜1− ⎥
4 ⎟⎠ ⎥
0 1 2 3
⎛ 3.83 ⎞ ⎛ 3.83 ⎞ ⎛ 3.83 ⎞ ⎛ 3.83 ⎞ ⎝
p = ⎢⎢⎜ ⎟ +⎜ ⎟ +⎜ ⎟ +⎜ ⎟ +...+ ⎥
0.00753
4⎜⎛1−
0 ⎠ ⎝ 1 ⎠ ⎝ 2 ⎠ ⎝ 3 ⎠ 3.83 ⎞
⎢⎝
0
⎟ ⎥
⎣⎢ ⎝ 4 ⎠ ⎦⎥
−1
(3.83)5 ×0.00753 ⎡ ⎛ 3.83 ⎞16 ⎛ 3.83 ⎞ ⎛ 3.83 ⎞ ⎤
16
Lq = ⎢1−⎜ ⎟ −16⎜ ⎟ ⎜1− ⎥ 5.85
3(4−3.83) 2
⎢⎣ ⎝ 4 ⎠ ⎝ 4 ⎠ ⎝ 4 ⎟⎠ ⎥⎦
(3.83)20 ×0.00753
p 20 = 0.03433
4(4)16
191
λeff = λ (1 − p ) = 20(1 − 0.03433) 19.31
20
Lq 5.85
⇒ Wq = = 0.303 hrs.
λeff 19.31
Thus by loosing 3.4% of potential customers (p20), the waiting line can be cut to one-third.
7.5.5 ( M / M / ∞ );( GD / ∞ / ∞ )
This is a self-service model with infinite system capacity where each arriving customer serves himself.
λn = λ , ∀ n ≥ 0
and µ n = nµ ∀ n ≥ 0
λn ρn
⇒ p = p = p
n µn n 0 n 0
1 −ρ
where, p = = e
0 ρ2
1+ ρ + +...
2
ρn −ρ
⇒ p = e
n n
(i) Lq = Wq = 0
(ii) Ls = ρ
1
(iii) Ws =
µ
Example
(7) Problems arrive at a computing center according to a Poisson distribution at an average rate of five per
day. Any person waiting to get his problem solved aids the man whose problem is being solved. If the
192
1
time to solve problem with one person has an exponential distribution with mean time of day and if
3
the average solving time is inversely proportional to the number of people working on the problem,
approximate the expected time in the center for a person entering the line.
λ = 5 problems / day
µ = 3 problems / day
µ n = nµ ∀ n ≥ 0
ρn −ρ
⇒ p = e
n n
∞ ∞ ρn
⇒ Ls = ∑ np n = ∑ n e− ρ
n =1 n =1 n
−ρ ρ 5
= ρe e = ρ = persons
3
1 3 1
⇒ average solving time of a problem = × = day/problem.
3 5 5
1 1
⇒ Ws = L = day = 8hrs.
5 s 3
Problems
1. Find the steady-state probability pn for the model ( M / M / c ); ( GD / c / ∞ ) . Also find the probability that all
λeff = λ (1 − p ) = µ ( Ls − Lq )
N
3. A small barbershop, operated by a single barber has room for at most two customers. Potential customers
arrive at a Poisson rate of three per hour. The successive service times are independent exponential
1
variables with mean rate of hour.
4
(b) What is the proportion of potential customers that enter the shop?
193
(c) If the barber could work twice as fast, how much more business would he do?
4. For ( M / M / 1); ( GD / ∞ / ∞ ) system, obtain Var(n) and Var(m), where m is the random variable denoting
5. Consider that two identical ( M / M /1);( GD / ∞ / ∞ ) with the same parameters λ and µ are operating. Show
= P ( N = n ) = ( n + 1)(1 − ρ ) ρ ; n ≥ 0
2 n
p
n
Now, suppose that it is decided to from a single queue instead of two queues but the two servers will be
retained. Show that the steady-state distribution for the combined system is
⎧ 2(1− ρ ) ρ n
⎪ ; n≥1
⎪ 1+ ρ
p =⎨
n ⎪1− ρ
⎪1+ ρ ; n =0
⎩
6. On an average 96 patients per 24-hour require the emergency service of a hospital. Also, on an average, a
patient requires 10 minutes of active attention. Assume that the facility can handle only one emergency at a
time. Suppose that it costs the hospital Rs. 100 per patient treated to obtain an average servicing time of 10
minutes, and if the time is to be decreased, each minute of decrease in this average time would cost Rs. 10
per patient treated. How much would have to be budgeted by the hospital to decrease the average size of the
1 1
queue from 1 patients to patients?
3 2
7. A maintenance service has Poisson arrival rates, negative exponential service times, and operates on a first
come, first served queue discipline. Breakdowns occur at an average rate of three per day with a range of
194
zero to eight. The maintenance crew can service at an average rate of six machines per day with a range
8. Assume that the goods train are coming to a yard at the rate of 30 trains per day and suppose that inter-
arrival time follows a negative exponential distribution. The service time for each train is exponential with
an average of 36 minutes. If the service yard can admit 9 trains at a time, calculate the probability that the
9. Patients arrive at a clinic according to a Poisson distribution at a rate of 30 patients per hour. The waiting
room does not accommodate more than 14 patients. Examination time per patients is exponential with mean
(b) What is the probability that an arriving person will not wait?
(c) What is the expected waiting time until a patient is discharged from the clinic?
10. A shipping company has a single unloading berth with ships arriving in a Poisson fashion at an average rate
of three per day. The unloading time distribution for a ship with n unloading crew is found to be
n
exponential with average unloading time days. The company has a large labour supply without regular
2
working hours, and to avoid long waiting line, the company has a policy of as many unloading crews on a
(a) Find the average number of unloading crews working at any time?
(b) What is the probability that more than four crews will be needed?
195
11. A bank has two tellers working on savings accounts. The first teller handles withdrawals only and the
second teller handles the deposits only. It has been found that the service time distribution for both deposits
and withdrawals is exponential with mean three minutes per customers. Depositors are found to arrive in a
Poisson manner through out the day at an average rate of 16 customers per hour whereas depositors are
found to arrive in a Poisson manner at an average rate of 14 customers per hour. What would be the effect
on the average waiting time for depositors and withdrawers if each teller could handle both deposits and
withdrawals? What could be the effect if this could be accomplished by increasing the mean service time to
3.5 minutes?
12. A car servicing station has two bays where service can be offered simultaneously. Due to space limitation,
only four cars can be accepted for servicing. The arrival pattern is Poisson with 12 cars per day. The service
time in both the bays is exponential with average rate of 8 cars per day per bay. Find the average number of
cars in the service station, the average number of cars waiting to be serviced and the average time a car
13. A company has five machines, which suffer from breakdown at an average rate of 2 per hour. There are two
servicemen. However, only one can work on a machine at a time. If n machines are out of order where n >
2, then n -2 of them will wait until at least one of the servicemen is free. Once a serviceman starts working
on a machine the time to complete the repair has an exponential distribution with mean 5 per minutes. Find
the distribution of the number of machines out of action at a given time. Find also the time an out of action
196