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

Simple queue send

The first queue example is simply adding (also referred to as sending) an item to a queue that has empty space:

When an item is added to a queue with available space, the addition happens immediately. Because space was available in the queue, the task sending the item to the queue continues running, unless there is another higher priority task waiting on an item to appear in the queue.

Although interaction with queues typically happens from within tasks, this isn't always the case. There are some special cases where queues can also be accessed from within ISRs (but that behavior has different rules). For the examples in this ...
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