Arrival Time
|
Burst Time
|
Process
|
3
|
10
|
P1
|
1
|
5
|
P2
|
0
|
20
|
P3
|
1
|
10
|
P4
|
P1
|
P4
|
P2
|
P3
|
CPU
FCFS P3 p2
p4 p1
CPU
|-----------|-----------|-----------|-----------|
0
20
25 35 45
TA = Time End Process – (Arrival Time)
TA1=
45 – 3 = 42
TA2=
25 – 1 = 24
TA Average è 120/4 = 30
TA3=
20 – 0 = 20
TA4=
35 – 1 = 34
WT = Wait Time Process – (Arrival Time)
WT1
= 35 – 3 = 32
WT2
= 20 – 1 = 19
WT Average è 75/4 = 18.75
WT3
= 0 – 0 = 0
WT4
= 25 – 1 = 24
No comments:
Post a Comment