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 20:00
Need asap write a short paper describing the history and differences between six sigma, waterfall, agile, and scrum models. understanding these models can give you a good idea of how diverse and interesting it development projects can be. describe what the rationale for them is and describe their key features. describe the history behind their development. at least 400 words
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
Write an algorithm to check if a number is even or odd and show with flow chart step by step
Answers: 2
question
Computers and Technology, 25.06.2019 08:00
Is skill in using productivity software, such as word processors, spreadsheets, database management systems, and presentation software.computer literacyinformation literacybusiness literacynetwork literacy
Answers: 1
question
Computers and Technology, 26.06.2019 04:40
What exactly does the value recorded in a single dimension of a sift keypoint descriptor signify?
Answers: 3
You know the right answer?
This question involves implementing different process scheduling algorithms. the scheduler wil be as...
Questions
question
English, 08.03.2021 09:40
question
Mathematics, 08.03.2021 09:40
question
Mathematics, 08.03.2021 09:40
Questions on the website: 13722363