Question 80
Explanation
Given CPU time slice of 2ms and following list of processes.
Find average turnaround time and average waiting time using round robin CPU scheduling?
Answer : 2. 5.66, 1.66Process | Bursttime (ms) | Arrival time |
P1 | 3 | 0 |
P2 | 4 | 2 |
P3 | 5 | 5 |
Find average turnaround time and average waiting time using round robin CPU scheduling?
Explanation
Previous | Next |
UGC NET CS December 2019 - Question 79 | UGC NET CS December 2019 - Question 81 |
CPU time slice = 2 ms
Sheduling Algorithm : Round Robin CPU scheduling
Gantt Chart:
(ms)
time
time
time
time
Average Turnaround Time
= ( 5 + 5 + 7 ) / 3
= 5.66
Average Waiting Time
= ( 2 + 1 + 2 ) / 3
= 1.66
So, option 2 is correct answer.