Introduction
Real-time embedded systems are increasingly complex, moving away from simple single-processor models to heterogeneous multi-core architectures with non-preemptive tasks and intricate dependencies. Traditional scheduling algorithms like Earliest Deadline First (EDF) and Rate Monotonic (RM), while optimal in simple scenarios, often become overly pessimistic or fail to scale in these NP-hard environments. LINTS^RT introduces a reinforcement learning (RL) framework inspired by AlphaGo Zero to autonomously learn optimal scheduling patterns, outperforming rule-based heuristics in challenging real-world scenarios.
Methodology
The LINTS^RT framework integrates three core components: a simulator, Monte Carlo Tree Search (MCTS), and a Deep Neural Network (DNN). The simulator models a multiprocessor environment, releasing jobs and tracking system states. MCTS is utilized during training or for static scheduling to explore the decision tree and identify paths that maximize runtime without deadline misses.
The DNN serves as the "brain" of the agent, processing system states represented as tensors. It outputs a policy (job selection probabilities) and a value (state safety evaluation). To meet the strict timing requirements of real-time systems, the authors designed a "lean" architecture consisting of CNN blocks, ensuring inference times remain within the nanosecond range (typically 10-40ns), making it viable for actual real-time OS integration.
Experimental Setup and Results
The framework was evaluated using synthetic task sets generated via the UUnifast-Discard algorithm, categorized by utilization levels (Light to Heavy). LINTS^RT consistently achieved higher schedulability than Global EDF (GEDF) and RM, particularly under heavy and mixed workloads. In non-preemptive and heterogeneous settings, where traditional rules struggle, the learning-based approach maintained high success rates.
Real-world validation was conducted by implementing LINTS^RT within LITMUS^RT, a real-time Linux extension. Even when accounting for real-world overheads like context switching, the RL-driven scheduler significantly outperformed the standard GSN-EDF plugin.
Conclusion and Future Work
LINTS^RT demonstrates the potential of applying deep reinforcement learning to real-time scheduling. By moving from hand-crafted heuristics to learned policies, the system adapts to hardware complexities autonomously. Future work aims to integrate the framework more deeply into OS kernels, handle complex task dependencies (DAGs), and develop formal schedulability tests based on the trained neural network weights.
Summary updated