SLIDE 1
Chapter 3: Planning and Scheduling Independent Tasks - - PowerPoint PPT Presentation
Chapter 3: Planning and Scheduling Independent Tasks - - PowerPoint PPT Presentation
Chapter 3: Planning and Scheduling Independent Tasks List-Processing Algorithm Part I At a given time, assign to the lowest-numbered free processor the first task on the priority list that is ready at that time and that hasnt already been
SLIDE 2
SLIDE 3
Chapter 3: Planning and Scheduling Independent Tasks
Independent Tasks Tasks that are independent of each other if they can be performed in any order (no edges in the order-requirement digraph). Label the tasks by their task times rather than their task number. The list-processing algorithm can be used to schedule the tasks onto machines using the given list but may not be efficient. Finding an optimal schedule amounts to packing the tasks with no “idle time” between adjacent tasks.
SLIDE 4
Chapter 3: Planning and Scheduling Independent Tasks
Example: Find a schedule for independent tasks of lengths 10, 4, 5, 9, 7, 7 using the list-processing algorithm.
SLIDE 5
Chapter 3: Planning and Scheduling Independent Tasks
SLIDE 6
Chapter 3: Planning and Scheduling Independent Tasks
Decreasing-Time List Algorithm First put the tasks in decreasing order by time, then apply the list processing algorithm. This will help pack the longest tasks first, so they do not “stick out” on the right end.
SLIDE 7
Example: Apply decreasing-time list algorithm on independent tasks 10, 4, 5, 9, 7, 7. Rewrite the tasks as: 10, 9, 7, 7, 5, 4
Chapter 3: Planning and Scheduling Independent Tasks
SLIDE 8