Deterministic scheduling
1 / 26

Deterministic Scheduling - PowerPoint PPT Presentation

  • Uploaded on

Deterministic Scheduling. Aperiodic Scheduling Earliest Deadline Due, Earliest Deadline First, Latest Deadline First, Spring Algorithm Periodic Scheduling References: Shaw – Chap 6 Buttazo – Chap 3 & 4.

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
Download Presentation

PowerPoint Slideshow about ' Deterministic Scheduling' - menefer

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Deterministic scheduling

Deterministic Scheduling

Aperiodic Scheduling

Earliest Deadline Due,

Earliest Deadline First,

Latest Deadline First,

Spring Algorithm

Periodic Scheduling

References: Shaw – Chap 6

Buttazo – Chap 3 & 4

More round robin periodic scheduling non feasible solution
More Round Robin Periodic Scheduling(Non-feasible Solution)

Example 2:

Earliest due date edd jackson s rule

Earliest Due Date (EDD) - Jackson’s Rule

Set of tasks:



Earliest due date edd guaranteed feasibility

Earliest Due Date (EDD) – Guaranteed Feasibility

Order tasks by increasing deadlines. Then:

Earliest deadline first edf guarantee of schedualability

Earliest Deadline First (EDF) – Guarantee of Schedualability

Assuming all tasks are ordered by increasing deadlines:

Dynamic Scheduling:

Assume Schedulable

Need to Guarantee that

Worst case finishing time:

For Guaranteed Schedulability:

Edf non preemptive scheduling

The scheduling problem for non-preemptive EDF is NP hard Schedualability

EDF - Non-Preemptive Scheduling

Bratley s algorithm

Bratley’s Algorithm Schedualability

Scheduling with precedence constraints latest deadline first or last optimizes max lateness

Scheduling with Precedence Constraints SchedualabilityLatest Deadline First (or last?)- Optimizes max Lateness

Latest deadline first

Latest Deadline First Schedualability

Edf with precedence constraints

EDF with Precedence Constraints Schedualability

The problem of scheduling a set of n tasks with precedent constraints and dynamic activations can be solved if the tasks are preemptable.

The basic ideas is transform a set of dependent tasks into a set of independent tasks by adequate modification of timing parameters. Then, tasks are scheduled by the Earliest Deadline First (EDF) algorithm, iff is schedulable. Basically, all release times and deadlines are modified so that each task cannot start before its predecessors and cannot preempt their successors.

Edf with precedence constraints1

EDF with Precedence Constraints Schedualability

Modifying the release time:

Edf with precedence constraints2

EDF with Precedence Constraints Schedualability

Modifying the Deadlines:


Example Schedualability

Jack Stankovic’s SchedualabilitySpring Algorithmvery powerful and actually has been applied in Jack’s real-time operating system

This does not yield an optimal schedule, but the general problem is NP hard. This does lend itself to artificial intelligence and learning. We are interested here in the concept, rather in any implementation.

The objective is to find a feasible schedule when tasks are have different types of constraints, such as

precedence relations,

resource constraints,

arbitrary arrivals,

non-preemptive properties, and

importance levels.

A heuristic function H is used to drive the scheduling toward a plausible path.

At each level of the search, function H is applied to each of the remaining tasks. The task with the smallest value determined by the heuristic function H is selected to extend the current schedule. If a schedule is not looking strongly feasible, a minimal amount of backtracking is used.

Jack stankovic s spring algorithm

Jack Stankovic’s SchedualabilitySpring Algorithm

Precedence constraints can be handled by adding a term E =1 if the task is eligible and E = infinity if it is not.

Jack stankovic s spring algorithm1

Jack Stankovic’s SchedualabilitySpring Algorithm


Summary Schedualability

Homework 3 due 5 3 07 lecture 4 24
Homework #3 (due 5/3/07) : SchedualabilityLecture 4/24