Question: Implement a C++ program to evaluate Round Robin scheduling algorithm. The evaluation of the most suitable quantum time needs to consider the following performance metrics,
Implement a C++ program to evaluate Round Robin scheduling algorithm.
The evaluation of the most suitable quantum time needs to consider the following performance metrics, but not limited to: (i) Turnaround time of the jobs; (ii) Waiting time of the jobs; and (iii) Number of interrupts incurred
Quantum time = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60]
The input file will be CSV file format and user able to input quantum time for comparison performance.
Job (1) arrive at CPU cycle 1
41,CPU 60,CPU 31,CPU 32,CPU 45,CPU 34,CPU 52,CPU 49,CPU 42,CPU 32,CPU 32,CPU 31,I/O 43,CPU 42,CPU 56,I/O 45,I/O 54,CPU 33,I/O 46,I/O 33,I/O 48,I/O 46,CPU 49,I/O 55,I/O 39,CPU 34,CPU 35,I/O 35,CPU 34,I/O 54,CPU 41,CPU 58,CPU 47,CPU 46,CPU 47,I/O 57,CPU 56,I/O 41,CPU 54,I/O 60,I/O 39,I/O 36,CPU 60,CPU 44,I/O 41,CPU 43,CPU 43,CPU 59,CPU 47,CPU 46,I/O 51,I/O 35,CPU 58,I/O 53,I/O 54,I/O 32,I/O 45,I/O 45,I/O 56,CPU 49,I/O 59,CPU 31,CPU 44,I/O 60,I/O 49,CPU 38,CPU 45,I/O 41,CPU 33,I/O 47,CPU 42,CPU 50,CPU 42,CPU 53,I/O 58,I/O 45,I/O 55,CPU 44,I/O 44,I/O 46,CPU 41,I/O 52,I/O 38,I/O 34,CPU 38,CPU 32,I/O 46,CPU 45,I/O 49,CPU 58,I/O 42,I/O 40,I/O 37,I/O 60,CPU 38,I/O 40,I/O 52,CPU 35,CPU 49,I/O 45,I/O 32,I/O 51,I/O 50,I/O 58,CPU 54,I/O 59,I/O 53,I/O 56,I/O 38,I/O 37,I/O 58,CPU 43,I/O 34,CPU 46,I/O 39,I/O 54,CPU 46,I/O 45,CPU 47,CPU 54,I/O 32,CPU 44,I/O
Job (2) arrive at CPU cycle 29
47,I/O 32,I/O 36,CPU 53,I/O 43,I/O 50,CPU 49,I/O 37,I/O 57,I/O 37,CPU 36,CPU 37,I/O 57,CPU 55,I/O 43,I/O 41,CPU 42,CPU 60,CPU 40,I/O 60,CPU 46,I/O 48,CPU 42,I/O 56,CPU 56,CPU 49,CPU 44,CPU 42,CPU 51,CPU 55,I/O 34,CPU 35,I/O 52,CPU 35,I/O 48,CPU 32,I/O 37,I/O 46,CPU 47,CPU 40,I/O 46,CPU 32,CPU 59,CPU 41,I/O 33,I/O 39,CPU 41,I/O 49,CPU 40,CPU 52,CPU 57,I/O 57,I/O 42,I/O 58,CPU 44,I/O 39,I/O 40,I/O 49,CPU 36,I/O 45,I/O 44,CPU 56,CPU 47,I/O 43,I/O 33,I/O 52,CPU 49,CPU 47,CPU 43,CPU 41,CPU 51,CPU 52,CPU 53,CPU 37,CPU 49,I/O 33,I/O 45,I/O 60,CPU 46,CPU 37,I/O 58,I/O 49,I/O 37,CPU 44,I/O 49,CPU 45,CPU 51,I/O 35,CPU 56,CPU 46,I/O 58,I/O 47,I/O 54,CPU 47,CPU 53,I/O 31,CPU 58,CPU 32,CPU 38,CPU 47,I/O 52,CPU 31,I/O 35,CPU 31,CPU 54,CPU 37,I/O 48,I/O 40,CPU 60,I/O 58,I/O 53,CPU 49,CPU 48,CPU 50,CPU 40,CPU 38,I/O 51,I/O 58,CPU 46,CPU 36,I/O 52,I/O 48,CPU
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
