Question: Need help with how to calculate CPU Utilization and waiting time Consider two t processes, cach with two CPU bursts withone burst in betwcen. Process

 Need help with how to calculate CPU Utilization and waiting time

Need help with how to calculate CPU Utilization and waiting time

Consider two t processes, cach with two CPU bursts withone burst in betwcen. Process I has a CPU burst of 9 units followed by an LO burst of 7 units and a CPU burst of 6 unit. Process 2 has a CPU burst of 2 units followed by an LO burst of 1 units and a CPU burst of 3 units Sappose that Proccss 1 arrives in the ready queue just beforc Process 2 and just after Proocss 2 arnives the process that was in the CPU seminates. No other processes are in the system. For cach of the scheduling algorithms below crcote Gantt charts like you did for assignment 2 Fill cach box with the state of the coresponding process. Use R for running, W for waiting, andr r ready. Calculate the waiting times and CPU utilization (as a fraction)for each process and fl nhe tahle below. a) First-Com/First-Scrved h) Shortest Joh irst (non-preenaptive) c) Preemptive Shortest Job First d) Round Rohin with a quantum of3. Gantt Charts: a)FCFS Process RRRRRRR Process 2 r |r 10 25 b) SJF Process 1 Pros 2 RR c) PSJF Process 1 Process 2 RRwRRRR 10 10 RR 3 Process RR Process 2 10 20 25 30 UtilizatioProcess Process 2 A Process Process 2 SJF PSJF RR 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!