Question: Write a C++ program to simulate the operation of two of CPU scheduling methods. The program does the following: 1. Get the number of processes
Write a C++ program to simulate the operation of two of CPU scheduling methods. The program does the following:
1. Get the number of processes from the user. 2. Get the burst time of each process from the user. 3. Assume that all processes arrive at "0" to the ready queue. 4. The program let the user select one of the two methods to implement the CPU scheduling. 5. The program calculates the average waiting time and the average turnaround time. 6. The program shows scheduling time of the CPU by using Gant Chart or table.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
