Working With CPU Scheduling Algorithms II
Working With CPU Scheduling Algorithms II
1. Given the list of processes, their CPU burst times and display/print the Gantt chart for
Priority scheduling. Compute the waiting time and turnaround time for each processor.
Print the Gantt chart and table of information which contains process name, execution
time, waiting time and turnaround time. Finally print the average waiting time and
average turnaround time.
Process Burst Time Priority
P1 12 2
P2 25 1
P3 13 3
P4 7 5
P5 11 4
3. Consider the four processes listed in the table below under multilevel queue scheduling.
The queue number denotes the process's queue.
Queue 1 has a higher priority than queue 2. Round Robin is used in queue 1 (Time
quantum = 2), while FCFS is used in queue 2. Print the Gantt chart and table of
information which contains process name, execution time, waiting time and
turnaround time.