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 23:20
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
How to launch an app: steps to be successful? launching an app is a great idea, but it’s not that easy as we supposed to think. the majority of mobile applications don’t generate revenue because companies aren’t ready to be competitive. referring to our experience in successfully building and launching apps we hope to you omit these difficulties. we are going to talk about ideas, marketing, testing your product, its development, distribution and support. you will learn 8 product launch stages to succeed.
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
When early motion pictures played in movie theaters, they were often accompanied by live organ or piano music. which of the following are the most likely reasons that this happened? (select all that apply). the music was provided to distract audience members from the loud sounds made when filmstrips were changed. the music accompanied the movies because the movies were silent and audiences were used to hearing music during plays in theaters. the music usually was played before, and sometimes after the movie, as an alternative form of entertainment. the music viewers to interpret the dramatic action in the films.
Answers: 2
question
Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
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
English, 06.01.2021 18:50
question
Physics, 06.01.2021 18:50
question
Mathematics, 06.01.2021 18:50
question
Mathematics, 06.01.2021 18:50
question
English, 06.01.2021 18:50
question
Mathematics, 06.01.2021 18:50
question
Mathematics, 06.01.2021 18:50
question
Mathematics, 06.01.2021 18:50
Questions on the website: 13722363