SLIDE 19 Assume the same data of the previous example and assume Assume the same data of the previous example and assume
a preemptive resume server. What are the average response times of each customer class?
From
2 / ] [ ) 1 ]( [
2 =
+ −
∑
P p i i i p p
S E S E T λ π ( )
3 2 1 1 1 1 1 2 3 2
[ ](1 ) [ ]/ 2 (1 )(1 ) 0 5 1 0 516 [ ]/ 2
i i i
E S E S T E S π λ π π λ
=
− + = − − × +
∑ ∑
:
) 1 )( 1 (
1 + =
− − =
∑
p p p i p p p
T π π ( ) ( )( )
1 3 2 2 2 1
0.5 1 0.516 [ ]/ 2 1.181 ms 1 0.516 1 0.216 [ ](1 ) [ ]/ 2
i i i i i i
E S E S E S T λ π λ
= =
× − + = = − − − + =
∑ ∑
( ) ( )( )
2 2 3 3 2 1
(1 )(1 ) 0.4 1 0.216 [ ]/ 2 0.560 ms 1 0 216 1 0 072
i i i
T E S π π λ
=
= − − × − + = =
∑
( )( )
3 3
1 0.216 1 0.072 [ ] E S T − − =
3 2 3 1 3
(1 ) [ ]/ 2 (1 )
i i i
E S π λ π
=
− + −
∑
37
( ) ( )
3 2 1
0.3 1 0.072 [ ]/ 2 0.323 ms 1 0.072
i i i
E S λ
=
× − + = = −
∑
When the interarrival time distribution is not exponentially
distributed, we can not use M/G/1 queue. However, the approximation
) 1 ( 2 ) 1 ]( [ 1
2 2 2 2 2 2 1 / /
ρ ρ ρ ρ − + × + + ≈
s s a G G
C S E C C C W
where Ca is the COV of the interarrival time is useful.
For M/G/1, this approximate is exact because its C =1 due to
) 1 ( 2 1 ρ ρ − +
s
C
2 2 2 2 2
For M/G/1, this approximate is exact because its Ca 1 due to exponentially distributed interarrival times. Thus,
1 / / 2 2 2 2 2 2 2 1 / /
) 1 ( 2 ) 1 ]( [ 1 ) 1 ( 2 ) 1 ]( [ 1
G M s s s s a G G
W C S E C S E C C C W = − + × = − + × + + ≈ ρ ρ ρ ρ ρ ρ
38