Question: Q1. Write a program in C++ to simulate the Round Robin (RR) scheduling algorithm (assuming arrival time =0 ). The program should ask the user
Q1. Write a program in C++ to simulate the Round Robin (RR) scheduling algorithm (assuming arrival time =0 ). The program should ask the user to input the following. 1. Number of processes (not more than 10 processes) 2. The CPU time required by each process (Burst Time) 3. The Time Quantum The program should then calculate the following: 1. Waiting time for each process 2. Average waiting time 3. Turnaround time for each process 4. Average turnaround time Note: 1. You are NOT allowed to use any readymade library constructs (linked lists, queues, etc.) or C++ Standard Template Library (STL) functions. Marks shall be deducted for violation. 2. Your program output format must match the sample input/output given on the next page
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
