In: Computer Science
Consider the following set of processes, with the length of the CPU-burst time given in milliseconds, and the priority given in integers (lower numbers represent higher priorities) :
Process Arrival Time Burst Time priority
P1 0 17 2
P2 5 8 3
P3 7 11 1
a. Draw Gantt charts illustrating the execution of these processes using nonpreemptive priority and preemptive priority, and Round Robins scheduling (time quantum = 4 ms).
b. What is the turnaround time of each process for each of the scheduling algorithms in part a?
a.) In Non-Preemptive there will be no context switching between processes whereas in preemptive there will be context switching between processes based on priority given.
b.) The average turn around time(TAT) for Non-preemptive priority is 23ms and for Preemptive priority it is 23.3ms and for Roundrobin priority it is 23.6ms.