Module 4
Module 4
Task constraints, Task scheduling: Aperiodic task scheduling: EDD. EDF, LDF, EDF with
precedence constraints. Periodic task scheduling:Rate monotonic and Deadline monotonic,
Real time Kernel- Structure, State transition diagram, Kernel primitives.
Types of task constraints:
Typical constraints that can be specified on real-time tasks are of three classes:
1. Timing constraints
2. Precedence relations
3. Mutual exclusion constraints on shared resources.
Timing constraints
Real-time systems are characterized by computational activities with stringent timing constraints
that must be met in order to achieve the desired behavior. A typical timing constraint on a task is
the deadline, which represents the time before which a process should complete its execution
without causing any damage to the system.
Depending on the consequences of a missed deadline, real-time tasks are usually distinguished
in two classes:
Hard: A task is said to be hard if a completion after its deadline can cause catastrophic
consequences on the system. In this case, any instance of the task should a priori be
guaranteed in the worst-case scenario.
Soft: A task is said to be soft if missing its deadline decreases the performance of the system
but does not jeopardize its correct behavior.
Characteristics of a real-time task
A real-time task Ji can be characterized by the following parameters:
1. Arrival time (ai) : It is the time at which a task becomes ready for execution; it is also
referred is request time or release time and indicated by ri.
2. Computation time (Ci) : is the time necessary to the processor for executing the task
without interruption;
3. Deadline (di) : is the time before which a task should be complete to avoid damage to
the system;
4. Start time (Si) : is the time at which a task starts its execution;
5. Finishing time (fi) : is the time at which a task finishes its execution;
6. Criticalness: is a parameter related to the consequences of missing the deadline.
7. Value (Vi) : represents the relative importance of the task with respect to the other tasks
in the system;
8. Lateness (Li) : Li = fi — di represents the delay of a task completion with respect to its
deadline; note that if a task completes before the deadline, its lateness is negative;
9. Tardiness or Exceeding time(Ei) : Ei = max{0, Li) is the time a task stays active after
its deadline;
10. Laxity or Slack time Xi : Xi — di — ai — Ci is the maximum time a task can be
delayed on its activation to complete within its deadline.