Question: operating system HW Q1. Write a program in C++ to simulate the Round Robin scheduling algorithm. The program should ask the user to input the

operating system HWoperating system HW Q1. Write a program in C++ to simulate the

Q1. Write a program in C++ to simulate the Round Robin scheduling algorithm. The program should ask the user to input the number of processes (up to 10 processes), the execution time required by each process (also called Burst Time), and the time quantum or slice for RR scheduling. The program should then calculate the following: 1. 2. 3. 4. Waiting time for each process Average waiting time Turnaround time for each process Average turnaround time Sample input/output: Enter No of Processes: 5 PI11: 14 PC21: 9 P131: 11 PI41: 3 PI51:1 Enter Time Quantun:5 Process Burrst Time 14 2 3 4 5 Average Waiting Time:20.4 Average Turn Around Tine :28 Waiting Time 23 19 27 15 18 Turnaround Tine 37 28 38 18 19

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 Databases Questions!