APERIODIC TASK SCHEDULING

Post on 04-Feb-2016

66 views 0 download

description

APERIODIC TASK SCHEDULING. Notation:. Earliest Due Date (EDD) - Jackson’s Rule. Set of tasks:. Problem:. Algorithm:. Earliest Due Date (EDD) - Jackson’s Rule. Earliest Due Date (EDD) – Example 1. Earliest Due Date (EDD) – Example 2. Earliest Due Date (EDD) – Guaranteed Feasibility. - PowerPoint PPT Presentation

Transcript of APERIODIC TASK SCHEDULING

APERIODIC TASK SCHEDULING

Notation:

Earliest Due Date (EDD) - Jackson’s Rule

Set of tasks:

Problem:

Algorithm:

Earliest Due Date (EDD) - Jackson’s Rule

Earliest Due Date (EDD) – Example 1

Earliest Due Date (EDD) – Example 2

Earliest Due Date (EDD) – Guaranteed Feasibility

Order tasks by increasing deadlines. Then:

Earliest Deadline First (EDF) – Horn’s Algorithm

Earliest Deadline First (EDF) – Horn’s Algorithm

Earliest Deadline First (EDF) – Example

Earliest Deadline First (EDF) – Guarantee of Schedualability

Dynamic Scheduling:

Assume Schedulable

Need to Guarantee that

Assuming all tasks are ordered by increasing deadlines:

Worst case finishing time:

For Guaranteed Schedulability:

EDF - Non-Preemptive Scheduling

The problem is NP hard

Non-Acyclic Search Tree Scheduling

Bratley’s Algorithm

Jack Stankovic’s Spring Algorithm

This does not yield an optimal schedule, but the general problem is NP hard. This does lend itself to artificial intelligence and learning.

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

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 Algorithm

Scheduling with Precedence Constraints

Latest Deadline First - Optimizes max Lateness

Latest Deadline First

EDF with Precedence Constraints

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 Constraints

Modifying the release time:

EDF with Precedence Constraints

Modifying the Deadlines:

Summary