Question: Purpose: Write a program to implement deterministic evaluation of CPU scheduling algorithms with the average waiting time criterion. Scheduler Sanpshot: Initial ready queue has 5
Purpose: Write a program to implement deterministic evaluation of CPU scheduling algorithms
with the average waiting time criterion.
Scheduler Sanpshot: Initial ready queue has processes where each process has the following
attributes:
i an identifier value between and randomly assigned however, no two processes
can have the same id
ii a burst length between randomly assigned when the process is created
iii a priority between and low value indicates higher priority randomly assigned
when the process is created two or more processes may have same priority rank
Requirement : Display initial snapshot of the system with the information of above processes as
following tabular manner order the entries in increasing ID number:
Process ID
Priority
Burstlength
RUBRIC: Correct values within the range ID burst length, priority
Nonduplicate ID
Display of the initial snapshot correct tabular format
Requirement : Now, allow user of the program to enter attributes id priority, and burst length of
another process the one Make sure the following are satisfied:
i user may enter any integer as a process ID Your program must check the appropriate
range to Also, user entered value should not be a duplicate of already created IDs.
Any of these violated, user must be notified and given chances to enter a valid ID
ii User may enter any integer as burst length. Your program must check the appropriate
range to If violated, user gets chances until an acceptable value is entered.
iii User may enter any integer as a priority value. Your program must check the appropriate
range to If violated, user gets chances until an acceptable value is entered.
Display updated snapshot of the system with processes now in the same format as above
Requirement
RUBRIC: Correct input acceptance implementation
Display of the updated snapshot.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
