Semaphores
Abstract
Semaphores are a very simple method of intertask synchronization supported by Nucleus SE. They provide a low-cost means of controlling the use of resources between tasks. In this chapter, the operation of semaphores is outlined, with details of all the relevant application program interfaces. The implementation of semaphores in Nucleus SE is also detailed.
Keywords
RTOS; Nucleus; semaphores
Semaphores were introduced in Chapter 3, RTOS Services and Facilities. Their primary use is the control of access to resources.
Using semaphores
In Nucleus SE, semaphores are configured at build time. There may be a maximum of 16 semaphores configured for an application. If no semaphores are configured, no data structures or service call code ...
Get Embedded RTOS Design 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.