This example shows how to do a blocking read of a Shared Multi-Queue using the Shared Memory Arena library.
You can leave the last two programs running and now in addition run
./smq_blocking_readAs you can see it appears to run no differently than the last read program, but in this case we are not calling sleep and we are using the system in a very efficient way, signaling the program the instant when there is a new entry to read.
From /ref examples/tutorial/smq_blocking_read.c
First we include some header files:
Shared Multi-Queues are good for real-time data feeds, when you don't want to miss any data.