Worst-Case Execution Time
Worst-Case Execution Time — An upper-bound analysis of how long a task can take under the execution conditions relevant to a real-time deadline.
Why the Maximum Matters
Real-time correctness can depend on completing before a deadline, so average execution time is insufficient. WCET analysis seeks a defensible upper bound rather than the fastest or typical run.
Caches, pipelines, interrupts, preemption and shared resources make modern processors difficult to bound tightly.
Measurement vs Proof
Observed maximum time from testing is not automatically WCET; the worst path may not have occurred. Static analysis, measurement-based methods and hybrid approaches provide different confidence/cost trade-offs.
The required rigor depends on the criticality of the system.
Related Real-Time-System Concepts
- Interrupt Latency
- Priority Inversion
- Jitter
- Real-Time System