Question
Suppose that the following processes arrive for execution at the times indicated. Each process will run for the amount of time listed and is assigned
Suppose that the following processes arrive for execution at the times indicated. Each process will run for the amount of time listed and is assigned a priority between 1-10 (lower numbers mean higher priority). In answering the question, base all decisions on the information you have at the time the decision must be made. Do not count the context switches at time zero and at the end.
Process | Arrival time [ms] | Burst time [ms] | Priority |
P1 | 0.0 | 8 | 10 |
P2 | 0.4 | 4 | 2 |
P3 | 0.5 | 1 | 10 |
P4 | 0.8 | 2 | 1 |
P5 | 1.0 | 2 | 5 |
Which of these statement(s) illustrate(s) the execution of these processes using RR (with time quantum 4ms)?
A) At 9 ms, process P3 is in the running state. (b) The number of context switches needed here is 6. (c) The average waiting time across all processes = 8.26 ms. (d) The average turnaround time across all processes = 4.86 ms. (e) Process P5 finishes its execution after all other processes.
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