subject

Problem overviewthis project must be written in java and will simulate a scheduler scheduling a set of jobs. the project will allow the user to choose a scheduling algorithm listed below . it will output a representation of how the jobs are executed.***scheduling algorithms***–first-come-first-serv ed–round-robin–shortest process next–shortest remaining time–highest response ratio next–feedbackdesignlet a job be represented as an object. a job needs to store such things as its name, arrival time, and duration. the running of a job can be simulated by calling a run method on the job. a job can have two run methods, one that runs it to completion, and one that runs it a given number of time slices. a job can be thought of as encompassing its pcb contents, so it is okay to store execution time on the job. schedulers can also be represented as objects. a scheduler will receive a list of job objects when it is created. it will need to do a few basic things. one is to select a job to run from the set of jobs. another is to execute the selected job. it must also keep track of time and handle arriving jobsnote that a scheduler can be preemptive or nonpreemptive. for nonpreemptive schedulers, once a job is chosen, it runs to completion. for preemptive schedulers, once a job is chosen, it runs n time slices depending on the time slice duration, which could be one unit of time or more than one. to keep things simple, a job will simply print its name once for each unit of its duration. so if a job has duration five, its task is to print its name five times. its name should just be a letter, such as a-z. if run preemptively, it will only print its name for the number of time slices passed. in this design you will have six different scheduler classes. since there is commonality, you can derive these from an abstract scheduler class then override methods as needed for each specific algorithm. to get the project running, use an os class which reads the jobs from a file and creates job objects, inputs the scheduler to use by menu or command line argument, then creates the scheduler object and passes the list of jobs. the scheduler object should then produce a graph illustrating how they ran. the graph can be text-based or can use graphics.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Which action is good business etiquette? a. switching your cell phone off before you enter a meeting b. keeping your cell phone on low volume before you enter a meeting c. setting a pleasant ring tone on your cell phone before you enter a meeting d. setting a standard ringtone on your cell phone before you enter a meeting
Answers: 1
question
Computers and Technology, 22.06.2019 23:00
Is an attack that relies on guessing the isns of tcp packets
Answers: 2
question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 23.06.2019 23:00
Computer programming is one type of what career
Answers: 1
You know the right answer?
Problem overviewthis project must be written in java and will simulate a scheduler scheduling a set...
Questions
question
Mathematics, 18.09.2019 11:50
Questions on the website: 13722360