SuperTinyKernel™ RTOS 1.05.3
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
Loading...
Searching...
No Matches
stk::SchedulabilityCheck::TaskTiming Class Reference

Execution deadline and scheduling period for a single periodic HRT task, used as input to CalculateWCRT() and GetTaskCpuLoad(). More...

#include <stk_strategy_monotonic.h>

Public Attributes

uint32_t duration
 Worst-Case Execution Time C of the task (ticks), from GetHrtDeadline(). Used as the base cost and interference multiplier Cj in CalculateWCRT().
uint32_t period
 Scheduling period T of the task (ticks), from GetHrtPeriodicity(). Used as the interference divisor Tj in CalculateWCRT() and the CPU load denominator in GetTaskCpuLoad().

Detailed Description

Execution deadline and scheduling period for a single periodic HRT task, used as input to CalculateWCRT() and GetTaskCpuLoad().

Populated by IsSchedulableWCRT() from each kernel task via GetHrtDeadline() and GetHrtPeriodicity() respectively. Entries must be in descending priority order (index 0 = highest-priority task).

Note
In standard WCRT notation: C is the Worst-Case Execution Time, T is the period, and D is the deadline. duration maps to C (= GetHrtDeadline(), the maximum allowed execution time per activation) and period maps to T (= GetHrtPeriodicity(), the activation interval).

Definition at line 297 of file stk_strategy_monotonic.h.

Member Data Documentation

◆ duration

uint32_t stk::SchedulabilityCheck::TaskTiming::duration

Worst-Case Execution Time C of the task (ticks), from GetHrtDeadline(). Used as the base cost and interference multiplier Cj in CalculateWCRT().

Definition at line 299 of file stk_strategy_monotonic.h.

Referenced by stk::SchedulabilityCheck::CalculateWCRT(), and stk::SchedulabilityCheck::IsSchedulableWCRT().

◆ period

uint32_t stk::SchedulabilityCheck::TaskTiming::period

Scheduling period T of the task (ticks), from GetHrtPeriodicity(). Used as the interference divisor Tj in CalculateWCRT() and the CPU load denominator in GetTaskCpuLoad().

Definition at line 300 of file stk_strategy_monotonic.h.

Referenced by stk::SchedulabilityCheck::CalculateWCRT(), and stk::SchedulabilityCheck::IsSchedulableWCRT().


The documentation for this class was generated from the following file: