[zeromq-dev] ZMQ vs FF

Steven McCoy steven.mccoy at miru.hk
Thu Jan 17 15:04:06 CET 2013

On 17 January 2013 01:35, A. Mark <gougolith at gmail.com> wrote:

> I'm needing to implement some low level MPMC queues. I've been rolling my
> own using pthreads, and so far I've been pulling my hair out in the process
> also... My code is strictly C at this point and I'd like to keep it that
> way. I've looked into FF (FastFlow) and find it's rather technical for low
> level so far. Is there any advantages over using ZMQ for MPMC queues? What
> would be the pros and cons of using ZMQ over FF for MPMC? It seems to me so
> far that ZMQ is very well suited for MPMC solutions.

Interesting, the technology paradigm is effectively the same but ZeroMQ
wraps in an easy to learn and use interface.

Of note from this page,

... queues, which require neither locks nor atomic operations. SPMC, MPSC,
> and MPMC queues are realized by using only SPSC queues and an arbiter
> thread,


On one hand you have full memory bus speed queues for single-provider
single-consumer, but on the other you have a broker thread with implied
synchronisation overheads.

There's a paper to read, that discusses queue implementations without
atomic primitives:


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130117/a3238648/attachment.htm>

More information about the zeromq-dev mailing list