subject

This question involves implementing different process scheduling algorithms. the scheduler wil be assigned a predefined set of tasks and will schedule the tasks based on the selected scheduling algorithm. each task is assigned a priority and cpu burst. the following scheduling algorithms will be implemented: a) first-come, first-served (fcfs), which schedules tasks in the order in which they request the cpu. b) shortest-job-first (sjf), which schedules tasks in order of the length of the tasks' next cpu burst. c) priority scheduling, which schedules tasks based on priority d) round-robin (rr) scheduling, where each task is run for a time quantum (or for the remainder of its cpu burst) priorities range from 1 to 10, where a higher numeric value indicates a higher relative priority. for round-robin scheduling, the length of a time quantum is 10 milliseconds. implementation is to be completed in python. simple code to read the list from a file is below, and available from d2l the schedule of tasks has the form [task name] [priorityl [cpu burst], with the following example format: t1, 4, 20 t2, 2, 25 t3, 3, 25 t4, 3, 15 t5, 10, 10 thus, task t1 has priority 4 and a cpu burst of 20 milliseconds, and so forth. it is assumed that all tasks arrive at the same time, so your scheduler algorithms do not have to support higher-priority processes pre-empting processes with lower priorities. in addition, tasks do not have to be placed into a queue or list in any particular order. the result of the scheduling code should be a list indicating the start time and duration of the cpu burst. for example, a fcfs output for the example tasks would be: t1, e, 20 t2, 21, 25 t3, 46, 25 t4, 71, 15 t5, 86, 10

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:30
Which of the following statements best describes it careers?
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
In the microsoft® access® and microsoft excel® programs, the ribbon contains tabs that are divided into with like tools in them. parts groups containers bunches
Answers: 1
question
Computers and Technology, 24.06.2019 20:00
Individuals suffering from technology overload feel distressed when deprived of computers and mobile devices.true/fasle
Answers: 2
You know the right answer?
This question involves implementing different process scheduling algorithms. the scheduler wil be as...
Questions
question
Mathematics, 02.04.2020 03:28
question
Mathematics, 02.04.2020 03:29
Questions on the website: 13722367