O'Reilly logo

Embedded C Programming by Mark Siegesmund

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 23

Multitasking

Abstract

This chapter introduces the concept of multiple concurrent tasks in a single processor. An overview of the different kinds of operating systems is presented with advantages and disadvantages of each on a PIC® microcontroller.

A deterministic dispatcher type of real-time operating system (RTOS) is used for the example programs. The primitive RTOS function calls in C are all taught in this chapter, with examples of their proper use. Data passing between tasks and sharing global data in a safe fashion are covered in this chapter.

Examples and exercises are for the popular PIC® microcontroller manufactured by Microchip.

Keywords

RTOS

Deterministic

Dispatcher

Semaphore

Operating system

Imagine having two ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required