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
96f52df2
Commit
96f52df2
authored
5 years ago
by
Björn Brandenburg
Browse files
Options
Downloads
Patches
Plain Diff
introduce 'work' as unit of service received or needed
parent
74db501b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
restructuring/behavior/job.v
+5
-1
5 additions, 1 deletion
restructuring/behavior/job.v
restructuring/behavior/schedule.v
+1
-1
1 addition, 1 deletion
restructuring/behavior/schedule.v
with
6 additions
and
2 deletions
restructuring/behavior/job.v
+
5
−
1
View file @
96f52df2
...
@@ -4,8 +4,12 @@ From mathcomp Require Export eqtype ssrnat.
...
@@ -4,8 +4,12 @@ From mathcomp Require Export eqtype ssrnat.
(* Throughout the library we assume that jobs have decidable equality. *)
(* Throughout the library we assume that jobs have decidable equality. *)
Definition
JobType
:=
eqType
.
Definition
JobType
:=
eqType
.
(* We define 'work' to denote the unit of service received or needed. In a
real system, this corresponds to the number of processor cycles. *)
Definition
work
:=
nat
.
(* Definition of a generic type of parameter relating jobs to a discrete cost. *)
(* Definition of a generic type of parameter relating jobs to a discrete cost. *)
Class
JobCost
(
Job
:
JobType
)
:=
job_cost
:
Job
->
duration
.
Class
JobCost
(
Job
:
JobType
)
:=
job_cost
:
Job
->
work
.
(* Definition of a generic type of parameter for job_arrival. *)
(* Definition of a generic type of parameter for job_arrival. *)
Class
JobArrival
(
Job
:
JobType
)
:=
job_arrival
:
Job
->
instant
.
Class
JobArrival
(
Job
:
JobType
)
:=
job_arrival
:
Job
->
instant
.
...
...
This diff is collapsed.
Click to expand it.
restructuring/behavior/schedule.v
+
1
−
1
View file @
96f52df2
...
@@ -12,7 +12,7 @@ Class ProcessorState (Job : JobType) (State : Type) :=
...
@@ -12,7 +12,7 @@ Class ProcessorState (Job : JobType) (State : Type) :=
scheduled_in
:
Job
->
State
->
bool
;
scheduled_in
:
Job
->
State
->
bool
;
(* For a given processor state, the [service_in] function determines how much
(* For a given processor state, the [service_in] function determines how much
service a given job receives in that state. *)
service a given job receives in that state. *)
service_in
:
Job
->
State
->
nat
;
service_in
:
Job
->
State
->
work
;
(* For a given processor state, a job does not receive service if it is not scheduled
(* For a given processor state, a job does not receive service if it is not scheduled
in that state *)
in that state *)
service_implies_scheduled
:
service_implies_scheduled
:
...
...
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