Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Question : Does a smaller Time Quantum (TQ) decrease

response time (RT) of the activities? Evaluate the answer


graphically?
Answer : Time Quantum is required when we solve the round-
robin algorithm. Now if we saw some example of round-robin
algorithm then we will able to check these statement .
Now , For Time Quantum (TQ) = 2 ,
Process AT BT CT TAT WT RT
P1 0 4 4 4 0 0
P2 3 5 10 7 2 1
P3 5 2 8 3 1 1
P4 7 7 24 14 7 3
P5 9 3 20 11 8 3
P6 11 3 21 10 7 4

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

Fig : Relationship between TQ and RT


Now , We insert the value of TQ and RT in a graph , We put the
value of TQ on X-axis and value of RT on Y-axis, and then connect
them . We found the required graph.
From the graph it is clear that Smaller Time Quantum(TQ) decrease
Response time(RT) of the activities.

You might also like