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, 21.06.2019 18:00
Which virus-infecting components are email messages prone to carry? one of the problems associated with the use of email communication is that email messages are prone to carry virus-infecting .
Answers: 3
question
Computers and Technology, 22.06.2019 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior
Answers: 1
question
Computers and Technology, 25.06.2019 05:30
Website hosting servers have their own unique ip address, what does this address consist of? a. numbers and letters b. numbers c. letters d. letters and symbols
Answers: 2
You know the right answer?
Problem overviewthis project must be written in java and will simulate a scheduler scheduling a set...
Questions
question
Mathematics, 25.11.2020 23:10
question
Mathematics, 25.11.2020 23:10
question
English, 25.11.2020 23:10
question
Mathematics, 25.11.2020 23:10
Questions on the website: 13722363