Lec12 MM1k Queueing System2
Lec12 MM1k Queueing System2
Notation M / M / 1 / k / FCFS
OR372-Dr.Khalid Al-Nowibet
k-1 k
. . .
OR372-Dr.Khalid Al-Nowibet
OR372-Dr.Khalid Al-Nowibet
0 1
. . .
k-1
n = 0 P0 = P1 n = 1 P1 + P1 = P0 + P2 n = 2 P2 + P2 = P1 + P3 n = 3 P3 + P3 = P2 + P4 ........... n = k Pk = Pk-1
OR372-Dr.Khalid Al-Nowibet
P1 = P2 P2 = P3 ......
OR372-Dr.Khalid Al-Nowibet
P
n
=1
P0 + P1 + P2 + P3 + +Pk= 1 P0 + (/)P0 + (/)2P0 + (/)3P0 + + (/)kP0 = 1 P0 [ 1 + (/)+ (/)2 + (/)3 + + (/)k ] = 1 P0 = [1 + (/)+ (/)2 + (/)3 + + (/)k ]1
OR372-Dr.Khalid Al-Nowibet
P0 =
( )
k n =0
All Pn are functions of P0 . Then Pn > 0 if and only if P0 > 0 Then P0 > 0 for any value of and since ( )
n =0 n
is finite sum
OR372-Dr.Khalid Al-Nowibet
P0
n
Pn = n k n =0
For any value of and
OR372-Dr.Khalid Al-Nowibet
n = 1,2,3, ,k
10
P0
1 P0 = 1 k +1
1 Pn = 1 k +1
n
n = 1,2,3, ,k
11
why (/) can be >1 ?? If system is full arrival rate = 0 Number of customers in system does not go to
OR372-Dr.Khalid Al-Nowibet
12
13
Total Arrivals
Rate of Not Entering the system
e
Finite size = k
= e + b
14
OR372-Dr.Khalid Al-Nowibet
15
Finite sum
OR372-Dr.Khalid Al-Nowibet
17
Wq =
Lq e
18
Example
OR372-Dr.Khalid Al-Nowibet
No Parking
CarWash Machine
19
Example
20
n =0
n = 0,1,2, ,7
OR372-Dr.Khalid Al-Nowibet
21
OR372-Dr.Khalid Al-Nowibet
22
2. car wash costs = 15 SR works hours = 12 hours E[money collected per day] =(15SR) E[cars washed per day] (12hr) E[cars washed per day] = e = (1 P7) = 9 (10.217) = 7.047 car E[money collected per day] =(15SR)(7.047)(12hr) = 1268.46 SR E[money lost per day] =(15SR) E[cars not washed per day] (12hr) E[cars not washed per day] = b = . P7 = 9 (0.217) = 1.953 car E[money lost per day] =(15SR)(1.953)(12hr) = 351.54 SR
OR372-Dr.Khalid Al-Nowibet
23
4. The management decided to buy another machine if the old machine works more than 85% of the time. Will the management buy a new machine? Percentage of working time for the old machine = Pr{ n > 0 } = U U = 1 P0 = 1 0.061 = 0.939 > 0.85 Buy a new machine
OR372-Dr.Khalid Al-Nowibet
24