Skip to Content
Hands-On RTOS with Microcontrollers
book

Hands-On RTOS with Microcontrollers

by Brian Amos
May 2020
Intermediate to advanced
496 pages
13h 54m
English
Packt Publishing
Content preview from Hands-On RTOS with Microcontrollers

RTOS semaphores

Semaphores are another very straightforward, but powerful, construct. The word semaphore has a Greek origin  the approximate English translation is sign-bearer, which is a wonderfully intuitive way to think about them. Semaphores are used to indicate that something has happened; they signal events. Some example use cases of semaphores include the following:

  • An ISR is finished servicing a peripheral. It may give a semaphore to provide tasks with a signal indicating that data is ready for further processing.
  • A task has reached a juncture where it needs to wait for other tasks in the system to catch up before moving on. In this case, a semaphore could be used to synchronize the tasks.
  • Restricting the number of simultaneous ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RTOS with Microcontrollers - Second Edition

Hands-On RTOS with Microcontrollers - Second Edition

Jim Yuill, Penn Linder

Publisher Resources

ISBN: 9781838826734Supplemental Content