O'Reilly logo

Real-Time Embedded Systems by Xiaocong Fan

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 19

Intertask Communication

Message Queue

Abstract

A POSIX message queue is a mechanism for asynchronous interprocess communication. Multiple tasks can send messages to a message queue; a sending task can be blocked when the target message queue is full. A message queue can also have multiple tasks receiving messages from it; a receiving task can be blocked when the queue is empty. A message queue allows nonblocking access when it is so configured. A POSIX message queue also features a notification mechanism that allows a process to register itself to a message queue and be asynchronously notified when the queue transitions from empty to nonempty. Message queues can be used to implement one-way, two-way, and client-server communications. ...

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