Answered step by step
Verified Expert Solution
Question
1 Approved Answer
24. (10 points) Consider three processes P1, P2, and P3, all ready to run at tune-0. Each process has two CPU bursts, each with the
24. (10 points) Consider three processes P1, P2, and P3, all ready to run at tune-0. Each process has two CPU bursts, each with the length of 10 ms. When its first CPU burst is completed, each process requests a blocking I/O operation on an IO device. Each process Pi performs I/O on a separate IO device D. When a process starts to receive service for I/O, its I/O burst takes 15 ms. The CPU scheduling policy is preemptive priority-based scheduling where Pi has higher priority than Pi+1. The processes run on a 2-processor SMP system and we are using Global Scheduling (that is, there is one global ready queue shared by both processes). Assume each process executes completely sequential code (that is, it can execute only on one processor at a time) Give the Gantt charts for CPU1, CPU2, Devicei and Device2. On each Gantt Chart make sure to indicate the process start, completion, and preemption times. 24. (10 points) Consider three processes P1, P2, and P3, all ready to run at tune-0. Each process has two CPU bursts, each with the length of 10 ms. When its first CPU burst is completed, each process requests a blocking I/O operation on an IO device. Each process Pi performs I/O on a separate IO device D. When a process starts to receive service for I/O, its I/O burst takes 15 ms. The CPU scheduling policy is preemptive priority-based scheduling where Pi has higher priority than Pi+1. The processes run on a 2-processor SMP system and we are using Global Scheduling (that is, there is one global ready queue shared by both processes). Assume each process executes completely sequential code (that is, it can execute only on one processor at a time) Give the Gantt charts for CPU1, CPU2, Devicei and Device2. On each Gantt Chart make sure to indicate the process start, completion, and preemption times
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started