Question: In this homework we will study task scheduling for resource management. Suppose at time 0 , a set of tasks arrive in the following order
In this homework we will study task scheduling for resource management. Suppose
at time a set of tasks arrive in the following order with their expected execution
times:
Task A: seconds
Task B: seconds
Task C: seconds
Task D: seconds
Task E: seconds
It is obvious we can schedule them one by one and complete all of them in seconds.
However, scheduling them to complete in different orders will result in very different
completion times for individual tasks. Here we will consider the following scheduling
policies that determine the order to schedule each task.
FirstComeFirstServed FCFS: tasks are scheduled in the order of arrival, ie
A B C D E
Shortest Job First SJF: tasks with shorter expected execution times are sched
uled first, ie C E A B D
Longest Job First LJF: tasks with longer expected execution times are scheduled
first, ie D B A E C
Round Robin RR: time slices are assigned to tasks following their order of arrival
in rounds. A task at the end of the time slice, if not completed, is scheduled for
the next round. Assume a fixed time slice of seconds.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
