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 02:00
When jen is planning to upgrade to a monitor with a better resolution, what should she be looking for in the new monitor?
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
So im doing this school challenge and the teachers said whats the average text a student gets a day so i need to get about 20 in a day but dont know how can you guys 2163371293
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Experimental data that is expressed using numbers is said to be
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
This program should be a short piece of code that prints all of the positive integers from 1 to 100 as described more fully below. the program may contain multiple methods, and if using an oo language, should be contained within a single class or object. the program should be designed so that it begins execution when invoked through whichever mechanism is most common for the implementation language. Γ’β€“ΕŸ print out all positive integers from 1 to 100, inclusive and in order. Γ’β€“ΕŸ print messages to standard output, matching the sample output below. Γ’β€“ΕŸ in the output, state whether the each integer is 'odd' or 'even' in the output. Γ’β€“ΕŸ if the number is divisible by three, instead of stating that the number is odd or even, state that the number is 'divisible by three'. Γ’β€“ΕŸ if the number is divisible by both two and three, instead of saying that the number is odd, even or divisible by three; state that the number is 'divisible by two and three'. Γ’β€“ΕŸ design the logic of the loop to be as efficient as possible, using the minimal number of operations to perform the required logic. sample output the number '1' is odd. the number '2' is even. the number '3' is divisible by three. the number '6' is divisible by two and three.
Answers: 1
You know the right answer?
This question involves implementing different process scheduling algorithms. the scheduler wil be as...
Questions
question
History, 24.08.2019 10:10
question
Mathematics, 24.08.2019 10:10
question
Spanish, 24.08.2019 10:10
Questions on the website: 13722367