Professional Documents
Culture Documents
Os Assignment
Os Assignment
Gantt Chart :
P1 P2 P3 P2 P4 P5 P2 P6 P4 P5 P6 P4
0 4 6 8 10 12 14 15 17 19 20 21 24
Here ,
When TQ = 2 then Response Time (RT) = 12.
Now for Time Quantum (TQ) = 3
Process AT BT CT TAT WT RT
P1 0 4 7 7 3 0
P2 3 5 11 8 6 0
P3 5 2 9 4 2 2
P4 7 7 24 17 10 4
P5 9 3 17 8 5 5
P6 11 3 20 9 6 6
Gantt Chart :
P1 P2 P1 P3 P2 P4 P5 P6 P4
0 3 6 7 9 11 14 17 20 24
Here ,
For TQ = 3 ,The RT = 17.
Now , If the TQ = 4 then
Process AT BT CT TAT WT RT
P1 0 4 4 4 0 0
P2 3 5 24 21 16 1
P3 5 2 10 5 3 3
P4 7 7 23 16 9 3
P5 9 3 17 8 5 6
P6 11 3 20 9 6 6
Gantt Chart :
P1 P2 P3 P4 P5 P6 P4 P2
0 4 8 10 14 17 20 23 24
Here ,
For TQ = 4 the RT = 19
So after perform the above examples we can clearly saw that when
the Time quantum is small the response time is also low but when the
TQ increase then the RT also increased.
SO, A smaller Time Quantum(TQ) Decrease Response Time(RT) of
the activities .
Now if we present these graphically then,
20
18
16
R
e 14
s
p 12
o
n 10
s
e
8
T
i 6
m
e
4
0
4 3 2
Time Quantum