Is there a way to achieve IPC in C using Priority Queues?
I need to send a structure from one process to another, but I’d like to assign a priority for each structure, so that the other process receives higher priority structures first.
Something like FIFO’s but with priority.
Thanks.
Both POSIX Message Queues and SysV message queues can handle priorities. A POSIX queue will always return the oldest message of the highest priority on a read. SysV queues return a message of any (specified) priority given with the read.