Library prosa.results.generality.elf
Require Export prosa.util.int.
Require Export prosa.model.schedule.priority_driven.
Require Export prosa.analysis.facts.priority.fp.
Require Export prosa.analysis.facts.priority.gel.
Require Export prosa.analysis.facts.priority.elf.
Require Export prosa.analysis.facts.priority.classes.
Require Export prosa.model.schedule.priority_driven.
Require Export prosa.analysis.facts.priority.fp.
Require Export prosa.analysis.facts.priority.gel.
Require Export prosa.analysis.facts.priority.elf.
Require Export prosa.analysis.facts.priority.classes.
Generality of ELF
Consider any type of tasks with relative priority points,...
...jobs of these tasks, and ...
... any processor model.
Suppose the jobs have arrival times and costs, and allow for any preemption
and readiness models.
Context {Arrival : JobArrival Job} {Cost : JobCost Job}
`{JobPreemptable Job} {JR : @JobReady Job PState Cost Arrival}.
`{JobPreemptable Job} {JR : @JobReady Job PState Cost Arrival}.
Suppose FP is the fixed-priority policy that parameterizes the ELF policy.
ELF Generalizes GEL
If the FP fixed-priority policy assigns equal priority to all tasks, ...
... then the ELF policy reduces to GEL.
Remark ELF_generalizes_GEL :
∀ (JLFP : JLFP_policy Job),
policy_is_ELF FP JLFP ↔ policy_is_GEL JLFP.
End ELFGeneralizesGEL.
∀ (JLFP : JLFP_policy Job),
policy_is_ELF FP JLFP ↔ policy_is_GEL JLFP.
End ELFGeneralizesGEL.
ELF Generalizes Fixed-Priority Scheduling
Consider a JLFP policy that behaves as an ELF policy.
Since ELF never inverts fixed task priority, an ELF schedule is always
also valid with respect to the underlying task-level FP policy.
Remark ELF_respects_fixed_priority :
∀ sched arr_seq,
respects_JLFP_policy arr_seq sched JLFP
→ respects_FP_policy arr_seq sched FP.
∀ sched arr_seq,
respects_JLFP_policy arr_seq sched JLFP
→ respects_FP_policy arr_seq sched FP.
Additionally, if each task has a distinct priority, or equivalently, no
two tasks have equal priority according to the FP fixed-priority
policy, then the reverse also holds: the ELF policy reduces to the
underlying FP policy. To show this, we require some additional setup and
assumptions.
First, note that FP-compliance does not constrain jobs of the same task,
whereas a given ELF policy may resolve ties arbitrarily when both
jobs have the same task priority and the same priority point. Hence,
in the only ambiguous case, we explicitly rule out tie-breaking that
disagrees with the required job-level priority order.
Hypothesis H_no_tiebreak :
∀ j j',
ep_task (job_task j) (job_task j') →
job_priority_point j = job_priority_point j' →
hep_job j j'.
∀ j j',
ep_task (job_task j) (job_task j') →
job_priority_point j = job_priority_point j' →
hep_job j j'.
Second, assume that task priorities are indeed distinct.
Third, consider any arrival sequence.
Then in any given valid schedule ...
Variable sched : schedule PState.
Hypothesis H_valid_schedule_of_arrivals : valid_schedule_of_arrivals sched arr_seq.
Hypothesis H_valid_schedule_of_arrivals : valid_schedule_of_arrivals sched arr_seq.
... in which tasks execute sequentially, ...
... the ELF policy and the underlying FP policy are equivalent.