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.
This is a preview of subscription content, log in via an institution.
Preview
Unable to display preview. Download preview PDF.
References
R. Barry, FreeRTOS Home (2012), http://www.FreeRTOS.org
ISO/IEC, ISO/IEC 9945:2003: Information Technology—Portable Operating System Interface (POSIX) (International Organization for Standardization, Geneva, 2003)
ISO/IEC, ISO/IEC 14882:2011: Information Technology—Programming Languages—C++ (International Organization for Standardization, Geneva, 2011)
J. LaBrosse, \(\mu \) C/OS-III, The Real-Time Kernel (Micrium Press, Magalia, 2009)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2015 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Kormanyos, C. (2015). C++ Multitasking. In: Real-Time C++. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-47810-3_11
Download citation
DOI: https://doi.org/10.1007/978-3-662-47810-3_11
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-662-47809-7
Online ISBN: 978-3-662-47810-3
eBook Packages: Computer ScienceComputer Science (R0)