Question: After first time executing simulator should ask for user to choose scheduling method. Menu should have at least four options. CPU Scheduler Simulator Scheduling Method
After first time executing simulator should ask for user to choose scheduling
method. Menu should have at least four options.
CPU Scheduler Simulator
Scheduling Method None
Preemptive Mode Off
Show Result
End Program
Option
a Scheduling Method: In this mode program optain scheduling method
from user. You should implement:
None: None of scheduling method chosen
First Come, First Served Scheduling
ShortestJobFirst Scheduling
Priority Scheduling
RoundRobin Scheduling You should also obtain time quantum
value
b Preemptive Mode: This is a clockdriven mode, in which the clock is a
counter that is incremented each simulated second. The clock is
initially and continues "ticking" until all the jobs in the input have
been serviced and left the system. This simulation runs until a
particular number of jobs have been serviced.
Nonpreemptive Mode: In this mode dispatcher should make decision after running
process was terminated.
c Show Result: If user chooses this option, program shows report to user
from screen As described Step
d End Program: If user chooses this option, program show all
implemented scheduling results on display As described Step and
also write these results to output file that given with o option and
terminate simulator.
e Appendix section has screen and file outputs. Please create same
output for your program.
Your program must gather statistics, compute, and report the following
information:
a The average waiting time that all jobs spend in the wait queue.
b The waiting time that each job spends in the wait queue.
You can get more information for CPU Scheduling methods from your text
book chapter Some Scheduling methods not run in Preemptive mode. So
take care about it
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
