Question: Linux OS Assignment 3 Example: the OS is executing 3 processes: P1:7 time quantums, P2:5 time quantums, P3: 4 time quantums. Execute the three processes

Linux OS  Linux OS Assignment 3 Example: the OS is executing 3 processes:
P1:7 time quantums, P2:5 time quantums, P3: 4 time quantums. Execute the
three processes in order (1 to 3) and show the events on

Assignment 3 Example: the OS is executing 3 processes: P1:7 time quantums, P2:5 time quantums, P3: 4 time quantums. Execute the three processes in order (1 to 3) and show the events on a time Gant chart: Time i start 1 7 813 P2 P3 14 18 P3 Done Executing ReadyQueue P1, P2,P3 P2.P3 P1 Average wait time P1:0 + P2:7 + P3:13 20 / 3 6.33 Average Completion Time . P1:7 + P2:13 + P3:18 un 38 / 3 12.33 Problem Now execute the processes in inverse order (3 to 1): Time l Start 0 Done Executing ReadyQueue |P3, P2, P1 Calculate the Average wait Time = Calculate the Average Completion Time Problem 2: Assume that you have foreknowledge of how long each process is expected to take, and you can use that in scheduling processes. Execute the processes according to Shortest CPU Time First (SJF or Shortest Burst First): Time Start 0 Done Executing ReadyQueue Calculate the Average Wait Time Calculate the Average Completion Time

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!