/
Clients and Servers
Clients and Servers
Another interesting use of message queues is shown in the figure below. Here, a task (the server) is used to monitor error conditions that are sent to it by other tasks or ISRs (clients). For example, a client detects whether the RPM of the rotating wheel has been exceeded, another client detects whether an over-temperature exists, and yet another client detects that a user pressed a shutdown button. When the clients detect error conditions, they send a message through the message queue. The message sent indicates the error detected, which threshold was exceeded, the error code that is associated with error conditions, or even suggests the address of a function that will handle the error, and more.
Clients and Servers
Related content
Keeping the Data in Scope
Keeping the Data in Scope
Read with this
Message Queues
Message Queues
More like this
Flow Control
Flow Control
Read with this
Task Message Queue
Task Message Queue
More like this
Semaphores
Semaphores
Read with this
OSQCreate
OSQCreate
More like this