Q2. The following metric shown the arrival time, the CPU time and the priority for a particular process in milliseconds (ms). Process Arrival Time (ms) CPU cycle (ms) Priority A 0 7 2 B 2 4 4 C 4 8 1...


Q2.       The following metric shown the arrival time, the CPU time and the priority for a particular process in milliseconds (ms).












































Process




Arrival Time (ms)




CPU cycle (ms)



Priority



A



0



7



2



B



2



4



4



C



4



8



1



D



7



6



4



E



9



3



3




(Assume a larger priority number implies a higher priority)



Draw a Gantt chart illustrating the execution of the above processes, and calculate the
average turnaround time
and
average waiting time
based on each of the following algorithms:




  1. Shortest Job Next (Non-preemptive)?

  2. Preemptive Priority?

  3. Round Robin (Time Quantum = 2ms) ?



Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here