Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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
Shortest-Job-First Scheduling
Priority Scheduling
Round-Robin Scheduling (You should also obtain time quantum
value)
b) Preemptive Mode: This is a clock-driven mode, in which the clock is a
counter that is incremented each simulated second. The clock is
initially 0, 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.
Non-preemptive 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 4).
d) End Program: If user chooses this option, program show all
(implemented) scheduling results on display (As described Step 4) 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 5). Some Scheduling methods not run in Preemptive mode. So
take care about it.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions