Multiple readers on multiple posix queues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

We are currently facing an issue when reading in a set of several
posix queues (let's say 2 different mqueues) from several processes.
We are currently using epoll_wait to wait for an incoming message on
either queue, then mq_timedreceive to retrieve it from the queue.

This is an issue when the number of reader process grows, as if we
send only one message on a queue, all processes are awaken when
epoll_wait returns, and all processes try to fetch the message. We
would like to fix this and remove those useless kernel space/user
space switchs.

Is there any way to run a mq_receive/mq_timedreceive on several
queues, that would awake only one process? Something more or less like
epoll, but that also fetches a message from the readable queues.

Romain
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux