Library prosa.model.task.preemption.fully_preemptive
Fully Preemptive Task Model
Consider any type of jobs.
In the fully preemptive model, any job can be preempted at any
time. Thus, the maximal non-preemptive segment has length at most ε
(i.e., one time unit such as a processor cycle).
Definition fully_preemptive_task_model : TaskMaxNonpreemptiveSegment Task :=
fun tsk : Task ⇒ ε.
End FullyPreemptiveModel.
fun tsk : Task ⇒ ε.
End FullyPreemptiveModel.
Run-to-Completion Threshold
Consider any type of tasks with WCETs.
In the fully preemptive model, any job can be preempted at any
time. Thus, the only safe run-to-completion threshold for a task
is its WCET.
#[local] Instance fully_preemptive_rtc_threshold : TaskRunToCompletionThreshold Task :=
task_cost.
End TaskRTCThresholdFullyPreemptiveModel.
task_cost.
End TaskRTCThresholdFullyPreemptiveModel.