| name | antic-mics-wcet-analysis |
| description | Mixed-Criticality (MC) system WCET (Worst-Case Execution Time) analysis and optimization using AnTi-MiCS and MulTi-MiCS frameworks. Enables optimal low WCET determination for real-time embedded systems, balancing processor utilization against Quality-of-Service. Use when: (1) designing mixed-criticality real-time systems, (2) optimizing WCET bounds for embedded tasks, (3) analyzing execution time distributions for mode switch optimization, (4) reducing utilization waste in MC scheduling. Activation: mixed criticality, WCET analysis, real-time systems, embedded scheduling, mode switch optimization, AnTi-MiCS, MulTi-MiCS. |
| version | 1.0.0 |
| author | Hermes Agent |
| license | MIT |
| metadata | {"hermes":{"source_paper":"AnTi-MiCS: Analytical Framework for Bounding Time in Embedded Mixed-Criticality Systems (arXiv:2604.27862)","citations":0,"tags":["real-time-systems","embedded-systems","mixed-criticality","wcet","scheduling"]}} |
AnTi-MiCS: Mixed-Criticality WCET Optimization
Overview
AnTi-MiCS and MulTi-MiCS provide analytical frameworks for determining optimal low WCET bounds in Mixed-Criticality systems. They solve the fundamental trade-off: low WCET → better utilization but more mode switches; high WCET → fewer switches but wasted resources.
Source: Ranjbar & Kumar, arXiv:2604.27862 (Apr 2026)
Core Concepts
The WCET Trade-off
In MC systems, tasks have multiple WCET values:
- High WCET: Conservative bound for HI-criticality mode (guaranteed safe)
- Low WCET: Optimistic bound for LO-criticality mode (better utilization)
Trade-off: Lower low-WCET → schedule more tasks but trigger more mode switches → degrade QoS
AnTi-MiCS (Single Low WCET)
Analytical method to determine optimal single low WCET:
- Collect task execution traces
- Analyze execution time distribution
- Compute optimal low WCET balancing utilization vs. mode switch probability
MulTi-MiCS (Multiple Low WCETs)
Extension for bimodal/multimodal execution distributions:
- Identify clusters in execution time distribution
- Compute multiple low WCET values per cluster
- Exploit temporal correlation between consecutive inputs
Implementation Pattern
import numpy as np
from collections import Counter
class AntiMiCSAnalyzer:
"""AnTi-MiCS: Single low WCET determination."""
def __init__(self, high_wcet, execution_traces, utilization_weight=0.5):
"""
Args:
high_wcet: High-criticality WCET bound
execution_traces: Array of observed execution times
utilization_weight: Trade-off parameter (0=QoS focus, 1=utilization focus)
"""
self.high_wcet = high_wcet
self.traces = execution_traces
self.weight = utilization_weight
def compute_optimal_low_wcet(self):
"""
Compute optimal low WCET by analyzing execution distribution.
Returns:
low_wcet: Optimal low WCET value
expected_utilization: Predicted processor utilization
mode_switch_prob: Probability of mode switch
"""
sorted_traces = np.sort(self.traces)
n = len(sorted_traces)
best_score = -np.inf
best_wcet = sorted_traces[0]
for candidate in sorted_traces:
within_bound = np.sum(sorted_traces <= candidate)
utilization = within_bound / n * candidate / self.high_wcet
mode_switch_prob = 1 - within_bound / n
score = (self.weight * (1 - utilization) +
( - .weight) * ( - mode_switch_prob))
score > best_score:
best_score = score
best_wcet = candidate
best_wcet, utilization, mode_switch_prob
():
():
().__init__(high_wcet, execution_traces)
.n_clusters = n_clusters
():
sklearn.mixture GaussianMixture
traces_2d = .traces.reshape(-, )
gmm = GaussianMixture(n_components=.n_clusters)
gmm.fit(traces_2d)
wcet_values = []
i (.n_clusters):
mean = gmm.means_[i][]
std = np.sqrt(gmm.covariances_[i][][])
wcet = (mean + * std, .high_wcet)
wcet_values.append((wcet, gmm.weights_[i]))
(wcet_values, key= x: x[])
Workflow
- Collect execution traces - Run tasks on target platform, record execution times
- Analyze distribution - Check if unimodal (use AnTi-MiCS) or multimodal (use MulTi-MiCS)
- Compute optimal WCET(s) - Apply framework to determine bounds
- Configure scheduler - Use computed WCETs in MC scheduling algorithm (e.g., EDF-VD)
- Monitor and adapt - Track actual execution times, update bounds if distribution drifts
Expected Results (from paper)
| Framework | QoS Improvement | Utilization Waste Reduction |
|---|
| AnTi-MiCS | 30.27% average | 35.89% |
| MulTi-MiCS | 36.68% (6.41% over AnTi) | 44.12% (8.23% over AnTi) |
When to Use
- Mixed-criticality embedded systems (automotive, aerospace, industrial)
- Real-time scheduling optimization where WCET tuning matters
- Multimodal workloads with distinct execution patterns
- Resource-constrained platforms needing utilization maximization
Related Standards
- ISO 26262 (automotive functional safety)
- DO-178C (avionics software)
- IEC 61508 (industrial functional safety)
References
- Ranjbar, B., Kumar, A. (2026). "AnTi-MiCS: Analytical Framework for Bounding Time in Embedded Mixed-Criticality Systems." arXiv:2604.27862.
- Related skills: [[real-time-scheduling]], [[embedded-systems-design]]