Question: Using the following table, assume a system with three processes as follows. Process CPU Burst Arrival Time Priority P1 16 0 3 P2 12 8
Using the following table, assume a system with three processes as follows.
| Process | CPU Burst | Arrival Time | Priority |
| P1 | 16 | 0 | 3 |
| P2 | 12 | 8 | 1 |
| P3 | 9 | 18 | 2 |
Q1: Draw the Gantt chart and Find the average waiting time for each of the following scheduling algorithms:
- FCFS (First come first serve) algorithm.
- SJF (Shortest job first non preemptive)
- SRT (Shortest remaining time) aka (SJF Preemptive) algorithm.
- Priority scheduling algorithm (Preemptive).
- RR (Round Robin) algorithms.
- Assume the Round Robin algorithm with quantum=8 MSc.
Q2: Which algorithm is the optimal CPU scheduling in term of waiting time?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
