Process burst Time Priority Arrival P1 20 40 0 P2 25 30 25 P3 25 30 30 P4 15 35 60 P5 10 5 100 P6 10 10 105
Process burst Time Priority Arrival P1 20 40 0 P2 25 30 25 P3 25 30 30 P4 15 35 60 P5 10 5 100 P6 10 10 105
Chapter11: Operating Systems
Section: Chapter Questions
Problem 8VE
Related questions
Question
Consider the following set of processes, with the length of the CPU-burst time given in milliseconds:
In addition to the processes listed above, the system also can enter an idle state (which there is no consumption for CPU resources. This idle state identified as p_idle). This state should be appearing in drawing Gantt Chart whenever the system has no other available processes to run.
Each process is assigned a numerical priority, with a higher number indicating a higher relative priority.
For each of the scheduling algorithms:
- FCFS (first come, first serve)
- Preemptive, Round robin scheduling algorithm: The length of a time quantum is 10 units. If a process is preempted by a higher-priority process, the preempted process is placed at the end of the queue.
- Draw a Gantt chart to show how these processes would be scheduled.
- Give the turnaround time (total time from first arrival into ready state until cpu-burst is completed) of each process.
- Give the waiting time (total time spent in the Ready state) of each process.
- Give the average waiting time of all the processes.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L