./sendmsg.exe sendmsg.exe 1 hello_1 ./sendmsg.exe sendmsg.exe 2 hello_2 ./sendmsg.exe sendmsg.exe 3 hello_3 ./sendmsg.exe sendmsg.exe 4 hello_4 ipcs -q ------ Message Queues -------- key msqid owner perms used-bytes messages 0x00009f29 131072 drmichko 600 1024 4 ./recvmsg.exe sendmsg.exe 2 type=2 data=hello_2 ./recvmsg.exe sendmsg.exe -3 type=1 data=hello_1 ./recvmsg.exe sendmsg.exe 0 type=3 data=hello_3 ipcs -q ------ Message Queues -------- key msqid owner perms used-bytes messages 0x00009f29 131072 drmichko 600 256 1 ./ctlmsg.exe sendmsg.exe done ipcs -q ------ Message Queues -------- key msqid owner perms used-bytes messages