Skip to main content

C++ Multitasking

  • Chapter
  • First Online:
Real-Time C++
  • 4595 Accesses

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 to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. J. LaBrosse, μC/OS-III, The Real-Time Kernel (Micrium Press, Magalia, 2009)

    Google Scholar 

  2. R. Barry, FreeRTOS Home (2012), http://www.FreeRTOS.org

  3. ISO/IEC: ISO/IEC 14882:2011: Information Technology – Programming Languages – C++ (International Organization for Standardization, Geneva, 2011)

    Google Scholar 

  4. ISO/IEC: ISO/IEC 9945:2003: Information Technology – Portable Operating System Interface (POSIX) (International Organization for Standardization, Geneva, 2003)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer-Verlag GmbH Germany, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics