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, 23.06.2019 06:20
What is a point-in-time measurement of system performance?
Answers: 3
question
Computers and Technology, 24.06.2019 12:50
Write a new lc-3 trap subroutine (i.e. a subroutine that will be invoked via the trap instruction) that will receive a numeric digit entered at the keyboard (i.e. an ascii character), echo it to the screen, and return in r0 the corresponding numeric value: so if the user types the digit '7', the character '7' will appear on the screen, but the value returned in r0 will be b0000 0000 0000 0111 (#7) you may not use any trap calls in your code - you must implement the "polling" code that interrogates the keyboard status and data registers. ; getnum_tsr ; a subroutine for obtaining a numeric value ; given ascii numeric digit input to keyboard. ; the numeric digit is echoed to the console (e.g. '7' = b0000 0000 0011 0111), ; but the value returned in r0 is the actual numeric value ; corresponding to the digit (e.g. b0000 0000 0000 0111 =
Answers: 3
question
Computers and Technology, 24.06.2019 15:30
How do i change the size of my bookmarks in my bookmarks bar in google chrome? ? plz hlp me
Answers: 2
question
Computers and Technology, 24.06.2019 22:30
The a great imaginary circle, or reference line, around earth that is equally distant from the two poles and divides earth into the northern and southern hemispheres.
Answers: 1
You know the right answer?
This question involves implementing different process scheduling algorithms. the scheduler wil be as...
Questions
question
Mathematics, 18.10.2020 08:01
question
Mathematics, 18.10.2020 08:01
question
English, 18.10.2020 08:01
question
Mathematics, 18.10.2020 08:01
Questions on the website: 13722367