Skip to content
Advertisement

Tag: sysv-ipc

How do I find waiting readers/writers for Linux System V Msg Queues?

I’m tasked with porting some C/C++ code that uses System V queues from HP-UX to Red Hat Linux (SVr4). Most of the calls have translated over fine, but I’m having difficulty with one specific issue as it relates to discovering waiting readers and writers on a given queue. On HP, one can use msgctl(IPC_STAT) to obtain a msqid_ds struct with

What are the disadvantages of Linux’s message queues?

I am working on a message queue used to communication among process on embedded Linux. I am wondering why I’m not using the message queues provided by Linux as following: msgctl, msgget msgrcv, msgsnd. instead of creating shared memory, and sync up with semaphore? What’s the disadvantage of using this set of functions directly on a business embedded product? Answer

Advertisement