Library prosa.analysis.facts.edf_definitions
Require Export prosa.analysis.facts.model.ideal.schedule.
Require Export prosa.analysis.facts.behavior.deadlines.
Require Export prosa.analysis.definitions.schedulability.
Require Export prosa.implementation.priority.edf.
Require Export prosa.model.schedule.edf.
Require Export prosa.model.schedule.priority_driven.
Require Import prosa.model.readiness.basic.
Require Import prosa.model.preemption.fully_preemptive.
Require Export prosa.analysis.facts.behavior.deadlines.
Require Export prosa.analysis.definitions.schedulability.
Require Export prosa.implementation.priority.edf.
Require Export prosa.model.schedule.edf.
Require Export prosa.model.schedule.priority_driven.
Require Import prosa.model.readiness.basic.
Require Import prosa.model.preemption.fully_preemptive.
Equivalence of EDF Definitions
We assume that jobs are fully preemptive.
For any given type of jobs, each characterized by an arrival time,
an execution cost, and an absolute deadline, ...
... following the basic (i.e., Liu & Layland)
readiness model under which any pending job is ready, ...
Context {RM : JobReady Job (ideal.processor_state Job)}.
Hypothesis H_basic_readiness : basic_readiness RM.
Hypothesis H_basic_readiness : basic_readiness RM.
...consider any job arrival sequence ...
...and a corresponding ideal uniprocessor schedule.
Suppose jobs do not execute after their completion, ...
...all jobs come from the arrival sequence arr_seq, ...
...and jobs from arr_seq don't miss their deadlines.
We first show that a schedule that satisfies the standalone
EDF_schedule predicate is also compliant with the generic notion of EDF
policy defined in Prosa, namely the respects_JLFP_policy
predicate.
Lemma EDF_schedule_implies_respects_policy_at_preemption_point :
EDF_schedule sched →
respects_JLFP_policy arr_seq sched (EDF Job).
EDF_schedule sched →
respects_JLFP_policy arr_seq sched (EDF Job).
Conversely, the reverse direction also holds: a schedule that satisfies
the respects_JLFP_policy predicate is also an EDF
schedule in the sense of EDF_schedule.
Lemma respects_policy_at_preemption_point_implies_EDF_schedule :
respects_JLFP_policy arr_seq sched (EDF Job) →
EDF_schedule sched.
respects_JLFP_policy arr_seq sched (EDF Job) →
EDF_schedule sched.
From the two preceding lemmas, it follows immediately that the two EDF
definitions are indeed equivalent, which we note with the following
corollary.
Corollary EDF_schedule_equiv :
EDF_schedule sched ↔ respects_JLFP_policy arr_seq sched (EDF Job).
End Equivalence.
EDF_schedule sched ↔ respects_JLFP_policy arr_seq sched (EDF Job).
End Equivalence.