Library prosa.analysis.definitions.sbf.periodic
Periodic Resource Model
Consider any kind of jobs and any kind of processor state.
The supply is distributed according to the periodic resource model with a
resource period Π and a resource allocation time γ if, for any
interval
[Π⋅k, Π⋅(k+1))
, the processor provides at least γ units of
supply.
Definition periodic_resource_model (Π γ : duration) (sched : schedule PState) :=
Π > 0
∧ Π ≥ γ
∧ ∀ (k : nat),
supply_during sched (Π × k) (Π × (k + 1)) ≥ γ.
End PeriodicResourceModel.
Π > 0
∧ Π ≥ γ
∧ ∀ (k : nat),
supply_during sched (Π × k) (Π × (k + 1)) ≥ γ.
End PeriodicResourceModel.
... we define the corresponding SBF as introduced in "Periodic Resource
Model for Compositional Real-Time Guarantees" by Shin & Lee (RTSS
2003).
Definition prm_sbf Δ :=
let blackout := Π - γ in
let n_full_periods := (Δ - blackout) %/ Π in
let supply_in_full_periods := n_full_periods × γ in
let duration_of_full_periods := n_full_periods × Π in
supply_in_full_periods + (Δ - 2 × blackout - duration_of_full_periods).
End PeriodicResourceModelSBF.
let blackout := Π - γ in
let n_full_periods := (Δ - blackout) %/ Π in
let supply_in_full_periods := n_full_periods × γ in
let duration_of_full_periods := n_full_periods × Π in
supply_in_full_periods + (Δ - 2 × blackout - duration_of_full_periods).
End PeriodicResourceModelSBF.