Computers and Technology

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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:00, raizagisselle1273
If a client wants to make minor edits, what should he/she use?
Answers: 3
image
Computers and Technology, 22.06.2019 17:40, pnhandley01
Consider the simple 3-station assembly line illustrated below, where the 2 machines at station 1 are parallel, i. e., the product only needs to go through one of the 2 machines before proceeding to station 2.what is the throughput time of this process?
Answers: 2
image
Computers and Technology, 23.06.2019 22:50, atifgujar
An environmental protection agency study of 12 automobiles revealed a correlation of 0.47 between engine size and emissions. at 0.01 significance level, can we conclude that there is a positive association between the variables? what is the p value? interpret.
Answers: 2
image
Computers and Technology, 24.06.2019 00:30, rustjallison9928
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
Do you know the correct answer?
This question involves implementing different process scheduling algorithms. the scheduler wil be as...

Questions in other subjects:

Konu
World Languages, 01.06.2021 14:30