Question: CPU scheduling is the basis of multi - programmed operating systems. By switching the CPU among processes, the operating system can make the computer more

CPU scheduling is the basis of multi-programmed operating systems. By switching the CPU among processes, the operating system can make the computer more productive. The following questions are about CPU scheduling.
Consider the following set of processes with the length of the CPU-burst time given in milliseconds:
Process
Burst Time
Priority
q,
q,
q,
P1
7
3
P2
1
1
P3
2
4
P4
5
2
The processes are assumed to have arrived in the order P1, P2, P3, P4, all at time 0.
a. Draw four Gantt charts illustrating the execution of these processes using FCFS, SJF, a non-preemptive priority (a smaller priority number implies a higher priority), and RR (quantum =2) scheduling.
b. Calculate the average waiting time.
CPU scheduling is the basis of multi - programmed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!