Chapter 16

Task Notifications

Abstract

Task Notifications allow the programmers to send data directly to another task without the need to use a communication object. Using task notification has the advantage, in that significantly less RAM is required when compared with using queues, mutexes, semaphores, or event groups. Using a communication object has the disadvantage, in that the object must be created before it is used, whereas using task notification requires only 8 bytes of RAM per task. Additionally, using task notifications is 45% faster than using communication objects. Each task has a 32-bit notification value as a 32-bit unsigned integer. When a task is created, its notification value is cleared automatically. This chapter is about the ...

Get ARM-Based Microcontroller Multitasking Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.