Consider 4 processes P1,P2,P3 and P4 with Arrival times 0, 1, 2
and 4 respectively. The Burst times of P1,P2,P3 and P4 are 5, 4,
2 and 1 respectively. Calculate the average turnaround time and
average waiting time using the Round robin algorithm if the time
quantum is 2 units.
Answers
Answered by
0
Explanation:
processes P1,P2,P3 and P4 with Arrival times 0, 1, 2
and 4 respectively. The Burst times of P1,P2,P3 and P4 are 5, 4,
2 and 1 respectively. Calculate the average turnaround time and
average waiting time
Answered by
0
Given are the arrival times and the burst times of four processes, Find their average turnaround and average waiting times using round robin
Explanation:
- In the round-robin scheduling algorithm each process is given a fixed amount of time (time quantum) to run and then the next process is given the same time to run and so on in a cyclic way.
- Meanwhile a queue known as the ready queue is maintained to follow which process is to be scheduled next based on the arriving order.
- We get the order of processes scheduled and time for which they each run as,
- Given below is the table for turnaround and waiting times for each process,
- Hence we get the average waiting and turnaround times as,
Similar questions