Question: #include using namespace std; // Function to find the waiting time for all processes void findWaitingTime(int processes[], int n, int bt[], int wt[], int quantum)
#include (a)modify the code follow the instruction below(b,c,d) (b) Use the program to read the provided job list. (c) Evaluate the job list with different time quantum: [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60], by determining the the following performance metrics: (i) Turnaround time of the jobs; (ii) Waiting time of the jobs; and (iii) Number of interrupts incurred. (d) Recommend the best time quantum for your job list based on your evaluation in (c). Use suitable charts to explain and justify your recommendation. Job (7) arrive at CPU cycle 292 Job (8) arrive at CPU cycle 337 Job (9) arrive at CPU cycle 345 CPU (92) I/O (98) I/O (84) CPU (82) I/O (84) I/O (86) CPU (85) CPU (82) I/O (97) CPU (94) CPU (96) I/O (97) CPU (95) I/O (100) I/O (94) I/O (88) CPU (89) I/O (83) CPU (98) I/O (81) CPU (85) I/O (85) CPU (93) I/O (88) I/O (84) CPU (88) CPU (89) I/O (82) CPU (88) CPU (95) CPU (93) CPU (87) CPU (96) I/O (98) CPU (100) I/O (91) CPU (98) CPU (85) CPU (94) CPU (84) I/O (98) CPU (88) CPU (84) CPU (84) CPU (90) CPU (93) CPU (93) CPU (95) CPU (97) I/O (94) CPU (93) I/O (94) CPU (84) I/O (100) I/O (83) CPU (93) CPU (89) I/O (96) I/O (84) I/O (88) CPU (97) CPU (94) I/O (88) CPU (84) I/O (99) I/O (82) I/O (89) I/O (92) I/O (97) CPU (93) CPU (98) CPU (93) CPU (81) CPU (86) I/O (87) I/O (84) I/O (85) CPU (90) I/O (96) CPU (95) CPU (100) I/O (96) CPU (90) CPU (92) I/O (84) CPU (86) I/O (97) I/O (99) CPU (100) CPU (81) CPU (85) I/O (93) I/O (85) I/O (88) I/O (87) I/O (85) CPU (82) I/O (87) I/O (96) I/O (91) CPU (85) I/O (97) CPU (91) I/O (96) I/O (92) CPU (81) I/O (85) CPU (95)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
