In a queueing system:
Ti : Time in state i
Let Nn-1,n = Number of
transitions from n-1 to nth state
Nn-1,n + Nn+1,n – Nn Ł 1 { transitions into a state –Transitions out }
Taking expectations,
E (Nn-1, n) + E (Nn+1,
n) – E (Nn) Ł 1
T T
As
T infinity
E (Nn-1) n) + E (Nn+1,
n) E( Nn) (1)
T T
Tn-1 = is time spent in state n-1
Then E Nn-1,n = ln-1 Tn-1 = Average number of people who arrive in time when state is “n-1”.
Therefore (1) becomes,
ln-1
Tn-1 + mn+1
Tn+1 = (ln
+ mn)
Tn
T T
Tn
Pn Probability of
being in state n.
T
ln-1
Pn-1 + mn+1
Pn+1 = (ln
+ mn)
Pn
This should be true for all n.
Hence, lo Po = m1 P1
Solving this we get, PI = lo l1 …. li-1 P0
m1…………..mi
Po = 1
µ
1+S lo ……. li-1
i=1
m1………..mi
steady - State
measures of performance
(i) Expected waiting time in system = Ws
(ii)
^ m
Wq = Expected waiting time in Queue
{Ws = Wq + }
(iii) Ls = Expected no. of customers in system
(iv) Lq = Expected no. of customers in queue
{ Ls = 1 + Lq} = not true when no
customers in queue
µ
N=1
:. Ls = S n Pn (Probability of
finding ‘n’ people in the system times
‘n’).
µ µ
n-1
Lq = S (n-c) pn = S n pn+c
|
µ
n=o
Ls = leff Ws ,where leff
= S lnPn (Effective arrival rate)
Lq = leff Wq
t
Avg. queue length = 1 ∫
Q (T) dT ,i.e., (Area)t
0
t t
N(t) N(t)
i=1 i=1
(Area)t
= S Wi =
S Wi * N(t) - (1)
t t N(t) t
Where N(t) = no. of arrivals in time t
:. Eq. (1) becomes
(Area)t
t = Ws leff
Ls = Ws leff
:.
Ls – Lq = leff = (expected no. of busy
servers)
m
M/M/1 (GD/µ/µ)
ln = l
mn = m
l
Define traffic intensity ρ
= m
Po
lo
……ln-1
Pn = PnPo {
Pn = m1
…… mn }
n=0
µ
Po S
Pn = 1 Po = 0 Pn = 0
Po = (1-P)
Pn = (1-ρ) ρ n leff = l
µ n=1
Ls = S
n (1 – ρ) ρ n =
ρ Lq = Ls – ρ =
ρ 2
(1- ρ) (1- ρ)
:.Ws = 1 :. Wq = ρ
m (1- ρ) m (1- ρ)
Find p.d.f. of
activity time for FCFS:
XI in exp. (m)
Ů
Then,
S
i-1
XI ~ F long dist (n, m)
F ( n, m)
p.d.f. is
f (t) = m (mt)n
e-mt
n!
Show. That p.d.f. X1 + X2 is m2
t e -mt
2
find p.d.f. of waiting time
when P (W @ X)
Profitability of finding 5 people in system : p5 (1-p)
µ
{ “ PASTA” = Poisson arrivals see time average}
n=0
P (w@x) = S p (w@x, he sees n people in system on
arrival)
Some important Points:
· FCFS minimizes large waiting times.
· LCFS minimizes mean waiting time.