Unit V (ECE)
Unit V (ECE)
Waiting
for service is par of our daily life. We wait at hotels, we
and
the waiting phenomenon is not an experience limitedto
th
banks
in
in
human
Da beings alone. Jobs wait to be processed on a machine. Aeroplanes
ore given permission to land at an airport. Cars wait
befor-
le in air
Ve cannot avoid waiting without incurring inordinate
traffic signals. We
thei
at
delay. In tact, we can hope to reduce the adverse impact
exense or
to acceptable limits.
of waiting
The study of queues deals with quantifying the phenomenon of
watting in lines using representative measures of performance, such as
average queue length, average waiting time in queue and average facility
utilisation.
(a/b/c): (dVe)
a Inter-arrival distribution
b Service-time distribution
C Number of channels (or) servers
d System capacity
Queue disipline
The following conventional codes are generally used to replace
the symbols a, b and e:
jmtasjore
jmbos
jor
LCFS
last come, first served,
SIRO0 = service in random order,
GD general service discipline.
(M/M/1) (/FIFO)
i)(M/M/s) (/FIFO)
Git) (M/M/1): (k/FIFO)
(v)(M/M/s) (k/FIFO)
Note: Mean, average, expected are same meaning.
41 (Terminology :
arrival
1
1 Mean
Mean arrival rate
rac =
1
2 Po1 - p 2. 1-P if A*
Po1F 1
Po+1 if l =u
BPP" Po 3 Pa p"Po, if A * j
Pn if i =u
4. 4 L= -k+1)p*+1
s 1p 1-pk*
I~pk+1
'
|W =
where
Vs (w) =
(u -
) e--4)w
|8.
9.
F ( >t) =e - ) t
10. 1
W
4.8
Probability and eing Theory
Model IV
Model II
(M/M/s) : (k/FIFO)
(M/M/s) : (o0/FIFO)
AnA, V n ( <sp)
S
S
2.
2. Po
Po
S -1
s(1-p) | |
3.
P 0sn<a05n <s Pon nss
1
Po Pn s!-s
Po
s! - s
s <n sk
n 2s
P 0, n>k
4. u)s*1
e d - e(1-p
SS! (-P (1-P
Ls Lg k-s)pk-s+1]
1-P Po
P [ > 0 ] = P[N2s
5.
s!(1-p)o
.
E (W/Ws >0 EWa
P[W>0]
1
=
s-1
where
PoPo P S-1
P[N2s + 1] =
s!(1p)
'=us26-n)Pa|
n=0
8. P
4.9
iQUeing T h e o r y
P traffic intensity= u
Po 1-p Pn = p " (1-p)
L 2
n=0
nPn =2 nph (1-p), 0<p<1
n=0
=
(1-P)P[1 +2p + 3p +...]
- (1-P)P(1-p) =
1-P
2. Average number of customers in the queue (
Lw= Lq
P(n> 1)
E x a
nhone call is
assumed to be distributed exponentially with mean
ofa
4 min.
booth >
single server
Solution: Given: Telephone
> infinite capacity
Arrivals at a telephone booth
model.
(»/FIF0)
The given problem is (M/M/1):
(or) (M/M/1): (»/FCFS)
[ FIFO=FCFS]
= 12 minutes
Given Mean arrival time
minute
per
Mean arrival rate () =
12
= 4 minutes
Mean service time
4.18
per minute
Mean service rate (u) =
- /12 12)
number of persons waiting in the system
) Average
Ls 1-P
1-3
Probability that the person
arriving in the booth has
(i)
to wait in the queue
P[W>0]= 1-P[W=0]
= 1-P[no customer in the system
=1-Po 1-[1-P =p -}
A person takes more than
10 minutes to wait and
(ii)
complete this call
P[W>1 = e - l ) t
= P [phone is busy]
(iv) P[phone in use]
= 1 -P [phone is idle]
= 1 -Po = 1-[1-P
H - 3
is the required
arrival ralc
ie.) If 3 where Ar
(i.e.,) If AR -AR)
AR+R
3
16
3
16
3
28
3 1 1
Hence the arrival rate should increase by 42 Per minute
28 12
4
(vi) The average length of the queue 1
4 12
)--15
Exampl
customers
A
eDermarket
Superma,
has a single cashier. During peak hours,
att a
arrive a rate of 20 per hour. The average number of customers
that can be processed by the cashier is 24 per hour. Calculate:
shatcan
that the cashier. is idle.
d The probability
number of customers in the Queueing system.
T h e average
time a customer spends in the system.
ii) The average
Solution:
1-
= 0.1667
in the system:
(ii) The average number of customers
Ls 1 -PP
20/24
1-2424
20/24
4/24
)- 5
(ii) The average time a customer spends in the system :
Ws
-
-h hour =
15 minutes
Lg Ls-P
Lq
s-
100 = 4.1667
24
Wa
(100
24 n0ur
= 12.5 minutes
Example 4.1a(13)|
(i) Find the average queue length that is formed from time to time.
(ii) The telephone company will install the second booth when
convinced that an arrival would expect to wait atleast 5 minutes
for the phone. Find the increase in flows of arrivals which will
justify the second booth.
(iv) What is the probability that an arrival will have to wait for
more than 15 minutes before the phone is free?
[AU NID 2006, A.U. CBT ND 2011]
Solution
12 per.minute
Mean service time = 4 minutes
P =V12
1/4
The probability that person
arriving at the booth will have to
(i)
wait is given by
0.3333
P(N 1)
=
p-
1
1/3
1/3
1/3
-(9-
La
(ii) The telephone company will install a second
booth is W>5, i.e.,
R 5
Wqu(4-AR)
where AR if the required arrival rate. Thus, we have
AR
T> 5
or Ag R|
1..,
16
AR36
Hence, the arrival rate should increase
by 1 8 Per minute
1
to jusity the second telephone booth.
(iv) The probability that an arrival will have to wait for more than
15 minutes is given by
e - 2 ) 15
= e2.= 0.0821
4.40
MULTISERVER
QUEUES eueing Deon
4.1. (b)
infinite multiple server
capacity, rver
Characteristics of poissson
net
Ag 1 2 An Po, n 2 1
Pn .1)
where
-+ 1M2 n 2)
There is a single server, n 4,n. But there are . serven
working independently of each other. If there be less than s eetoe
(ie.) if n <s, only *' of the 's servers will be busy and theustoth
omer,
idle and hence the mean service rate will be nu.
others
If n 2s, all the s servers will be busy and hence the mean sernig
rate= S.
n, 0 Sn <s
Hence
n = su, nzs . (3)
= 1 2 ) Po if 0 Sn <s
and P = P
a.2.. (-1)Hs4.su... (n -s+ 1)
- 1 ! '(Gyn-s++ Ko
S!shs
P Po if as n
2P = 1
is given by
Now
Now
Po n=0
1 Po 1
+2
ns s!sn-s u
Po= 1
n 0 / 2 !
=s4s
1
n
+ 1 Po 1
1 Po= 1
n
S -1
1
. Po
S
length,
00
Lq 2 (n -
s) Pn
n=s
co
1 Po
n-s) s!ns
n=s
Put n-S =X
StX
Po
x=0 s!
X=0
x=0
(/u) 3* Po
p(1-P)=
ss!(1-p)
W
The probability that an arrival has to wait = the probability
6.
that there are s or more customers in the system.
-
Po
n
Po
s! (1-
=
1-P (an arrival has to wait)
=1
Po
s!1 S
QUeUeny
4.43
The mean
waiting time in the
queue for those who
E (Wa) actually wait
E (WWs >0) =
P(W,> 0)
s (1-
S.s! (1- Po
S
Po
1
1
us (1-
S
P n =s+1 n
Pa-P s
(N =s)
Po -
s(1 s!
s! 1 Po
s!
S
The average number of customers (in non-empty queues), who
have to actually wait,
E
(N/N21) = E (N P (NG21)
S+1
! (1 LS
1
S .S P
1- S
1
S Po
Example 4.1.b(4)
(ii)
iii) Tf the customer has to wait in the queue, what is the expected
length of his waiting time ? [A.U N/D 2008, M/J 2012]
Solution
Given s = 2,
=
10 x per minute
perper minute
1/6)
-
(1/4) - ---« 0.67
#---a
1-p 1- LS
-1--o67
=
-1
Po s! (1 (1)
(0.67)
Take
Takes(1-P)- 2! (0.67)
=
0.335
(1) Po =
(1.67 +0.355)= 0.5
P[a customer has to wait] = P[N2 2
()
W.K.T (A/Po
PNs] =- P
2 = (0.67
2 0.67 (0.5)
=
0.168
1
(ii) E (W/W, > 0)=
= 3 min.
4 2-
6
4 pumps. The service
times follow the
A petrol pump station has
with a mean of 6
min. and carsarrive f or
distribution
exponential
rate of 30 cars per hour,
service in a poisson process at the
Solution
Given Petrol pumps Multiple server
Cars Infinite capacity
The given problem is (M/M/s) : (oo/FIFO) model
Given Mean arrival rate ( ) = 30 per hour
S= 4
303
10
30
Pu (4(10)
S (910
-
0.75
1-P 1-A 1-= 025
fo n=0 ! (1)
s!1
o - 1 (3 1+: =
13
/u =
13.5
Take s! (1-P) (41) (0.25)
Po [13+ 13.5] = [26.5] = 0.0377
= PIN2S]S (1-
Po
34
P(N2 4) (0.25) (O.0377)
=
0.509
(4!)
(Gi) (a) To find W
Wa L (2)
Lg 1 aus+1
Ss! (1-p? o . (3)
(3) Lq
1 (3) (0.0377) = 1.527
(4)(4!) (0.25)
(0.25)
(2) W =
(1.527) 0.0509 h =
=
0.0509 x 60 min =
3.05 min
(b) To find Ws
Ws =
W+ (3.05+6) per min =
9.05 min
(c) To find Ls
Ls=Lg + =
1.527 +3= 4.527 =
4.53 cars
Q1) The fraction of
time when the pumps are busy =
traffic intensity
S 4
the fraction of time
when the pumps are idle
the required % 25% =
=
1-
12. Define Little's formula. [A.U A/M 2004]
(or) For (M/M/1) : (oo/FIFO) model, write the Little's formula.
[A.U CBT M/J 2010] [A.U A/M 2003]
(or) Write down the Little's formulas that hold good for the
infinite capacity Poisson queue models.
(or) Write the relations among Ls , Lq , Ws and Wq
Solution Aliter
1
) W - -
i) Wa =
W- i) LgL,-P
(ii) Ls =
à Ws Gii) W =
iL
Giv) Lg 1 1
=
Wa