Skip to content
Snippets Groups Projects
Commit 608eb93b authored by Pierre Roux's avatar Pierre Roux Committed by Björn Brandenburg
Browse files

Make the floating preemptive model hypothesis more explicit

parent fe966f9b
No related branches found
No related tags found
No related merge requests found
Require Export prosa.analysis.facts.preemption.task.floating.
Require Export prosa.analysis.facts.preemption.rtc_threshold.job_preemptable.
(** Furthermore, we assume the task model with floating non-preemptive regions. *)
Require Import prosa.model.preemption.limited_preemptive.
Require Import prosa.model.task.preemption.floating_nonpreemptive.
(** * Task's Run to Completion Threshold *)
......@@ -10,6 +7,9 @@ Require Import prosa.model.task.preemption.floating_nonpreemptive.
threshold] for the model with floating non-preemptive regions. *)
Section TaskRTCThresholdFloatingNonPreemptiveRegions.
(** Furthermore, we assume the task model with floating non-preemptive regions. *)
#[local] Existing Instance floating_preemptive.
(** Consider any type of tasks ... *)
Context {Task : TaskType}.
Context `{TaskCost Task}.
......
......@@ -59,9 +59,7 @@ Section TaskRTCThresholdFloatingNonPreemptiveRegions.
information about the placement of preemption points in all jobs, i.e.,
it is impossible to predict when exactly a job will be preemptable. Thus,
the only safe run-to-completion threshold is [task cost]. *)
Global Program Instance fully_preemptive : TaskRunToCompletionThreshold Task :=
{
task_rtct (tsk : Task) := task_cost tsk
}.
Definition floating_preemptive : TaskRunToCompletionThreshold Task :=
fun tsk : Task => task_cost tsk.
End TaskRTCThresholdFloatingNonPreemptiveRegions.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment