LazyTick: Lazy and Efficient Management of Job Release in Real-Time Operating Systems
Open Access
- 26 September 2025
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Embedded Computing Systems
- Vol. 24 (5s) , 1-25
Abstract
Releasing jobs and performing scheduling decisions in real-time operating systems (RTOSes) is often realized within tick interrupts. In each tick interrupt, a set of tasks that are waiting to release new jobs, namely, the waiting set, is inspected to determine the jobs that should be released at this tick. Such a waiting set is sorted whenever a job has finished, by which the release process can be efficiently achieved. However, the overhead of sorting can vary vastly depending on the task set, which has to be taken into account in the worst-case timing analysis. Moreover, the tick interrupt in common practices is backed by a single hardware timer that is configured to trigger interrupts, either with a fixed period or reconfigured to the next release time (so-called one-shot timer). Since not necessarily at every interrupt a job will be released, several tick interrupts might be redundant. For the one-shot timers, the reconfiguration during runtime also incurs overheads at a variable interval. To reduce such variability and amount of overhead, in this work, we propose LazyTick which partitions the task set and distributes the subsets over multiple timers. Specifically, we propose two job release procedures with constant operations overhead—one for harmonic task sets and one for non-harmonic task sets. We implemented the support for multiple hardware timers in FreeRTOS and conducted intensive experimental evaluations. The evaluation shows that LazyTick can reduce the variability in overhead by up to ≈ 5 × in peak and ≈ 3× on average in comparison to the default implementation. Additionally, the combined overhead of the job release process is reduced by up to ≈ 6.1 × in peak and ≈ 3.6× on average.Keywords
Funding Information
- DFG Priority Program “Disruptive Memory Technologies” (SPP 2377)
- “ARTS-NVM” (502308721)
- “Memory Diplomat” (502384507)
- DFG Project “One-Memory” (405422836)
This publication has 18 references indexed in Scilit:
- Scheduling and energy savings for small scale embedded FreeRTOS-based real-time systemsDesign Automation for Embedded Systems, 2023
- A comprehensive survey of industry practice in real-time systemsReal-Time Systems, 2021
- System Software2021
- Efficient mapping of runnables to tasks for embedded AUTOSAR applicationsJournal of Systems Architecture, 2020
- Unifying fixed- and dynamic-priority scheduling based on priority promotion and an improved ready queue management technique2015
- Realizing Compositional Scheduling through Virtualization2012
- Improved Task Management Techniques for Enforcing EDF Scheduling on Recurring Tasks2010
- Load adjustment in adaptive real-time systems2002
- Worst-case execution time analysis of the RTEMS real-time operating system2002
- Hashed and hierarchical timing wheels: efficient data structures for implementing a timer facilityIEEE/ACM Transactions on Networking, 1997