C++ message_queue_01
Date: 2024-10-20Last modified: 2024-10-20
Table of contents
Possible output
receiver: Starting receiver...
receiver: Loop
receiver: Blocked on select()...
sender: Starting sender...
sender: Creating message queue
sender: Preparing message to send
sender: Sending message to queue
sender: Preparing message to send
sender: Sending message to queue
sender: Preparing message to send
sender: Sending message to queue
sender: Preparing message to send
sender: Sending message to queue
sender: Preparing message to send
receiver: Message notification received
sender: Sending message to queue
receiver: Receiving message...
sender: Closing message queue
receiver: MESSAGE BODY #0
sender: The end
receiver: Loop
receiver: Blocked on select()...
receiver: Message notification received
receiver: Receiving message...
receiver: MESSAGE BODY #1
receiver: Loop
receiver: Blocked on select()...
receiver: Message notification received
receiver: Receiving message...
receiver: MESSAGE BODY #2
receiver: Loop
receiver: Blocked on select()...
receiver: Message notification received
receiver: Receiving message...
receiver: MESSAGE BODY #3
receiver: Loop
receiver: Blocked on select()...
receiver: Message notification received
receiver: Receiving message...
receiver: MESSAGE BODY #4
receiver: Loop
receiver: Blocked on select()...
receiver: Message notification received
receiver: Receiving message...
receiver:
receiver: The end
main: End of execution. Parent process
main: End of execution. Child process