Papers
Topics
Authors
Recent
Search
2000 character limit reached

Timing-Anomaly-Free Scheduling

Updated 4 February 2026
  • The paper introduces the Deterministic Dynamic Execution (DDE) algorithm, which eliminates timing anomalies by enforcing fixed resource allocation and strict execution order.
  • It uses a single offline simulation to safely estimate tight worst-case response times while reducing pessimism and computational complexity.
  • Experimental results demonstrate up to a 72% reduction in worst-case response time and a 7–9% decrease in jitter, enhancing predictability in dynamic scheduling.

A timing-anomaly-free dynamic scheduling algorithm is a scheduling technique developed for heterogeneous systems that eliminates timing anomalies—situations where local reductions in task execution time paradoxically result in increased global execution time—by enforcing deterministic constraints on resource allocation and execution order. The Deterministic Dynamic Execution (DDE) algorithm is the first such approach for heterogeneous systems, supporting both safe and tight worst-case response time (WCRT) analysis through a single offline simulation, while reducing pessimism and complexity relative to traditional scheduling strategies (Zhu et al., 28 Jan 2026).

1. System and Task Model

The DDE algorithm is defined for heterogeneous platforms composed of a set of processing-unit instances:

PU={CPU00,CPU01,CPU10,CPU11,GPU00,GPU10,}PU = \{ CPU_0^0, CPU_0^1, CPU_1^0, CPU_1^1, GPU_0^0, GPU_1^0, \ldots \}

Each instance is specified by its architecture AA (e.g., CPU, GPU), micro-type TT (e.g., high-performance CPU0_0 versus low-power CPU1_1), and index II, yielding the notation ATIA_T^I.

Tasksets are represented as multi-typed DAGs. A DAG G=(V,E,M,Γ)G=(V, E, M, \Gamma) consists of:

  • VV: finite set of tasks (nodes)
  • EV×VE \subseteq V \times V: precedence constraints (edges)
  • AA0: maps each task to its eligible processor-unit types
  • AA1: gives execution-time intervals as AA2 for best-case and worst-case execution times

The response time of a task AA3, AA4, is the time from the DAG source AA5 until AA6’s finish time AA7, with worst-case response time for a scheduler AA8 defined as:

AA9

where TT0 is the set of legal schedules under TT1.

2. Timing Anomalies in Dynamic Scheduling

Timing anomalies occur in dynamic scheduling when local improvements—such as reductions in execution time for individual tasks—lead to increased global response times, either by altering resource contention or task dispatch order.

Formal Model: System execution is represented as a finite-state machine mapping each TT2 to a progress tuple TT3. A strict timing anomaly is present if, for two reachable states TT4:

  • There exists a non-empty subset TT5 such that all TT6, TT7 is strictly less progressed than TT8, while TT9 for all other tasks
  • Future execution from 0_00 is at least as large as from 0_01 for tasks not in execution
  • Yet, after some number of steps 0_02, the state derived from 0_03 is no longer ahead of that from 0_04

Illustrative Example: Under the HBFS policy, a local reduction in a task’s execution time may shift resource contention, indirectly delaying the critical chain and resulting in a higher overall completion time than the case with no reduction [(Zhu et al., 28 Jan 2026), see Fig. 3].

3. Deterministic Dynamic Execution Algorithm

DDE enforces two primary constraints at runtime to prevent timing anomalies:

Constraint 1: Resource-Allocation Determinism

Each task 0_05 is fixed in advance to execute on a predetermined processor type 0_06.

Constraint 2: Execution-Order Determinism

Tasks are ordered offline into a total order 0_07 that respects DAG precedence. No task may begin execution before all its predecessors in 0_08 have reached the "started" state.

DDE Execution-Progress Model

  • The system state 0_09, with initial state 1_10 set to 1_11, except for the source node which starts at 1_12.
  • The transition function 1_13 updates progress of each task by checking dependency completion, resource availability, and advancing time.

Algorithm Sketch

At each time tick:

  1. Add newly ready tasks to ReadyQ.
  2. Select the ReadyQ task with minimum index in 1_14.
  3. If all its 1_15 predecessors have started and a resource of type 1_16 is available, dispatch and mark as started.
  4. Advance one tick, decrement execution counters, and update stages.

Computational complexity is 1_17, with 1_18 the simulated WCRT and 1_19 the number of compute units.

4. WCRT Estimation via Offline Simulation

Under DDE, WCRT is determined by a single offline simulation where each task is allocated its WCET on the assigned resource. Due to monotonicity of execution progress under the DDE constraints, the simulated response time bounds all real executions:

II0

This simulation avoids the need for exhaustive state-space exploration ordinarily required when timing anomalies are possible.

5. Generation of Execution Constraints

Constraints for DDE are generated by two methods.

(a) Trace-Based Extraction: Run the baseline scheduler (e.g., HBFS) offline on the DAG with all tasks at their WCETs. Extract, for each task II1, its start and finish times and resource type. Sort tasks by start time (ties broken by ID) to derive II2, and fix II3 to the corresponding instance type.

(b) Heuristic HACPA Method: Assign ranks bottom-up as

II4

Tasks are processed in descending order of rank; each receives the processor type and resource minimizing its finish time under WCET and dependency constraints. The resulting trace yields II5 and II6.

6. Formal Guarantees and Anomaly-Freeness

Monotonicity Lemmas:

  1. Every state transition advances at least one task’s progress.
  2. Dependency completions are preserved under progress ordering.
  3. Advancement in any task's progress in a "smaller" state remains at least as advanced in a "larger" state after a transition.

Strict-TA-Free Theorem (Theorem 3): Under the two DDE constraints, for all relevant state pairs and all II7, the simulation from a state strictly ahead in progress remains (at least) as advanced at every later step. This ensures absence of both strict and generic timing anomalies, so the simulated WCRT is both safe (upper-bounding real execution) and tight.

7. Experimental Evaluation and Results

Tasksets and Configuration

  • Random task DAGs of size II8 with density II9
  • Each DAG given 100 configurations: 4 processor types (CPUATIA_T^I0, CPUATIA_T^I1, GPUATIA_T^I2, GPUATIA_T^I3)
  • Node execution intervals: 80% assigned heavy (WCET ATIA_T^I4 10–30ATIA_T^I5 BCET), 20% light (WCET ATIA_T^I6 1–1.2ATIA_T^I7 BCET)
  • Resource availability: 1, 2, or 4 instances per type

Metrics

Metric Definition
MSWCRTATIA_T^I8 Maximum observed RT over 10,000 random runs under scheduler ATIA_T^I9
WCRTG=(V,E,M,Γ)G=(V, E, M, \Gamma)0 Offline simulated all-WCET bound under scheduler G=(V,E,M,Γ)G=(V, E, M, \Gamma)1
AVRTG=(V,E,M,Γ)G=(V, E, M, \Gamma)2 Average response time
jitterG=(V,E,M,Γ)G=(V, E, M, \Gamma)3 G=(V,E,M,Γ)G=(V, E, M, \Gamma)4

Results

  • Probability of timing anomaly: up to 45% under HFCFS for sparse graphs; G=(V,E,M,Γ)G=(V, E, M, \Gamma)53% for HBFS.
  • DDE eliminates all observed timing anomalies: G=(V,E,M,Γ)G=(V, E, M, \Gamma)6.
  • DDE reduces WCRT by average 5–25% compared to baseline MSWCRT, with best-case reduction of 72%. HACPA variant provides an additional 2–5% reduction.
  • Jitter reduced by 7–9% on average.
  • Tradeoff in AVRT: increase by 4.2% overall (from including non-TA cases), while AVRT decreases by 1.2% for TA-exhibiting systems (best case reduction −40%).

8. Significance and Implications

Deterministic Dynamic Execution establishes the first provably strict timing-anomaly-free algorithm for dynamic scheduling on heterogeneous systems. By imposing lightweight, offline-derived deterministic constraints, it converts a challenging real-time analysis problem—complicated by non-monotonic progress of dynamic schedules—into a tractable single simulation. The approach demonstrably eliminates timing anomalies, allows safe and tight WCRT estimation, reduces worst-case and jitter metrics, and does so with minimal negative impact on average-case performance. A plausible implication is that DDE provides a scalable foundation for predictable execution in safety-critical and hard real-time applications deployed on modern heterogeneous compute platforms (Zhu et al., 28 Jan 2026).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Timing-Anomaly-Free Dynamic Scheduling Algorithm.