Hope this helps I had a series of commands that needed to be executed in order, but the main program flow did not depend on their completion so I queued them up and passed them to another process via a System V message queue to be executed independently of the main program. Since message queues provide an asynchronous communications protocol, they were a good fit for this task. To be honest, I used System V message queues because I had never used them before and I wanted to. I'm sure there are other IPC methods I could have used.
I wish did fix the issue. I've been working remotely with POSIX message queues for some days. Now I want to do it in my own PC but I've found that there's no /dev/mqueue folders where queues are created; which means that I don't know where they are (of whether there are or not), so I can't access there to delete them in case of an unexpected end of my program.
Permission denied when trying to create message queue using POSIX Message Queues
By : monsterfi
Date : September 29 2020, 06:00 AM
fixed the issue. Will look into that further From the man page: