Abstract
A multitasking scheduler is an indispensable tool for providing temporal and functional software distribution. In this chapter, we design a cooperative C++ multitasking scheduler that performs a top-down call of its tasks using time slices and a basic priority mechanism. This multitasking scheduler is compact and portable and can be used for a wide variety of projects ranging from small to large. Toward the end of this chapter, we will discuss additional multitasking features such as extended scheduling with yield and sleep functions and the C++ thread support library.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
J. LaBrosse, μC/OS-III, The Real-Time Kernel (Micrium Press, Magalia, 2009)
R. Barry, FreeRTOS Home (2012), http://www.FreeRTOS.org
ISO/IEC: ISO/IEC 14882:2011: Information Technology – Programming Languages – C++ (International Organization for Standardization, Geneva, 2011)
ISO/IEC: ISO/IEC 9945:2003: Information Technology – Portable Operating System Interface (POSIX) (International Organization for Standardization, Geneva, 2003)
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer-Verlag GmbH Germany, part of Springer Nature
About this chapter
Cite this chapter
Kormanyos, C. (2018). C++ Multitasking. In: Real-Time C++. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-56718-0_11
Download citation
DOI: https://doi.org/10.1007/978-3-662-56718-0_11
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-662-56717-3
Online ISBN: 978-3-662-56718-0
eBook Packages: Computer ScienceComputer Science (R0)