Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROSA - Formally Proven Schedulability Analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lasse Blaauwbroek
PROSA - Formally Proven Schedulability Analysis
Commits
3fe76668
Commit
3fe76668
authored
5 years ago
by
Björn Brandenburg
Browse files
Options
Downloads
Patches
Plain Diff
add two notions of "all deadlines met" independent of tasks
parent
bffcc219
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
restructuring/analysis/schedulability.v
+60
-0
60 additions, 0 deletions
restructuring/analysis/schedulability.v
with
60 additions
and
0 deletions
restructuring/analysis/schedulability.v
+
60
−
0
View file @
3fe76668
...
...
@@ -106,3 +106,63 @@ Section Schedulability.
Qed
.
End
Schedulability
.
(** We further define two notions of "all deadlines met" that do not
depend on a task abstraction: one w.r.t. all scheduled jobs in a
given schedule and one w.r.t. all jobs that arrive in a given
arrival sequence. *)
Section
AllDeadlinesMet
.
(* Consider any given type of jobs... *)
Context
{
Job
:
JobType
}
`{
JobCost
Job
}
`{
JobDeadline
Job
}
`{
JobArrival
Job
}
.
(* ... any given type of processor states. *)
Context
{
PState
:
eqType
}
.
Context
`{
ProcessorState
Job
PState
}
.
(* We say that all deadlines are met if every job scheduled at some
point in the schedule meets its deadline. Note that this is a
relatively weak definition since an "empty" schedule that is idle
at all times trivially satisfies it (since the definition does
not require any kind of work conservation). *)
Definition
all_deadlines_met
(
sched
:
schedule
PState
)
:=
forall
j
t
,
scheduled_at
sched
j
t
->
job_meets_deadline
sched
j
.
(* To augment the preceding definition, we also define an alternate
notion of "all deadlines met" based on all jobs included in a
given arrival sequence. *)
Section
DeadlinesOfArrivals
.
(* Given an arbitrary job arrival sequence ... *)
Variable
arr_seq
:
arrival_sequence
Job
.
(* ... we say that all arrivals meet their deadline if every job
that arrives at some point in time meets its deadline. Note
that this definition does not preclude the existence of jobs in
a schedule that miss their deadline (e.g., if they stem from
another arrival sequence). *)
Definition
all_deadlines_of_arrivals_met
(
sched
:
schedule
PState
)
:=
forall
j
,
arrives_in
arr_seq
j
->
job_meets_deadline
sched
j
.
End
DeadlinesOfArrivals
.
(* We observe that the latter definition, assuming a schedule in
which all jobs come from the arrival sequence, implies the former
definition. *)
Lemma
all_deadlines_met_in_valid_schedule
:
forall
arr_seq
sched
,
jobs_come_from_arrival_sequence
sched
arr_seq
->
all_deadlines_of_arrivals_met
arr_seq
sched
->
all_deadlines_met
sched
.
Proof
.
move
=>
arr_seq
sched
FROM_ARR
DL_ARR_MET
j
t
SCHED
.
apply
DL_ARR_MET
.
by
apply
(
FROM_ARR
_
t
)
.
Qed
.
End
AllDeadlinesMet
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment