Library prosa.analysis.facts.model.work_conserving
Require Export prosa.model.schedule.work_conserving.
Require Export prosa.analysis.facts.model.uniprocessor.
Require Import prosa.util.all.
Require Export prosa.analysis.facts.model.uniprocessor.
Require Import prosa.util.all.
Facts About Work Conservation
Consider jobs with arrival times and costs, and any processor and
readiness model.
Context {Job : JobType} `{JobArrival Job} `{JobCost Job}.
Context {PState : ProcessorState Job} {jr : JobReady Job PState}.
Context {PState : ProcessorState Job} {jr : JobReady Job PState}.
Consider any arrival sequence and schedule.
If there is at least one core, work conservation ensures that some
job executes whenever an arriving job is backlogged.
Lemma work_conserving_implies_scheduled_job :
0 < #|Core| →
work_conserving arr_seq sched →
∀ j t,
arrives_in arr_seq j →
backlogged sched j t →
∃ j_other,
scheduled_at sched j_other t.
0 < #|Core| →
work_conserving arr_seq sched →
∀ j t,
arrives_in arr_seq j →
backlogged sched j t →
∃ j_other,
scheduled_at sched j_other t.
Assume that the processor has exactly one core.
To establish work conservation on a uniprocessor, it is sufficient
to show that some job executes whenever a job from the arrival
sequence is backlogged.
Lemma uniprocessor_work_conserving :
(∀ j t,
arrives_in arr_seq j →
backlogged sched j t →
∃ j_other,
scheduled_at sched j_other t) →
work_conserving arr_seq sched.
End WorkConservation.
(∀ j t,
arrives_in arr_seq j →
backlogged sched j t →
∃ j_other,
scheduled_at sched j_other t) →
work_conserving arr_seq sched.
End WorkConservation.