On 17 January 2013 01:35, A. Mark <[email protected]> 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, http://calvados.di.unipi.it/dokuwiki/doku.php?id=ffnamespace:architecture 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: http://calvados.di.unipi.it/dokuwiki/lib/tpl/torquati/paper_files/TR-10-20.pdf -- Steve-o
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
