,
Daniele Cattaneo
Creative Commons Attribution 4.0 International license
High-resolution timekeeping is a desirable feature in real-time operating systems targeting microcontrollers, which traditionally has been held back due to its impact on context switch overhead. In this paper we present the design of a timing subsystem that decouples preemption from the timekeeping operation. This design, making use of 1+N hardware timers, significantly speeds up the context switch code while scaling effectively to multi-core microcontroller architectures with N cores. Preliminary experimental results on the Miosix fluid kernel show the effectiveness of the proposed design.
@InProceedings{terraneo_et_al:OASIcs.NG-RES.2026.4,
author = {Terraneo, Federico and Cattaneo, Daniele},
title = {{Efficient Design of High-Resolution Timekeeping in Real-Time Operating Systems}},
booktitle = {7th Workshop on Next Generation Real-Time Embedded Systems (NG-RES 2026)},
pages = {4:1--4:15},
series = {Open Access Series in Informatics (OASIcs)},
ISBN = {978-3-95977-415-4},
ISSN = {2190-6807},
year = {2026},
volume = {140},
editor = {Ali, Hazem Ismail and Kurunathan, Harrison},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/OASIcs.NG-RES.2026.4},
URN = {urn:nbn:de:0030-drops-254228},
doi = {10.4230/OASIcs.NG-RES.2026.4},
annote = {Keywords: RTOS, Task Scheduling, Multiprocessing}
}
archived version