Introduction - If you have any usage issues, please Google them yourself
The sending program msg1.c similar. Delete msg_to_receive statement in the main function, replaced by the buffer [BUFSIZ]. Remove the message queue to delete the code, and make the following changes in the running cycle. Now we call msgsnd to the input text is sent to the queue.