[zeromq-dev] inter-thread push and pull

Steven McCoy steven.mccoy at miru.hk
Fri Jun 8 02:34:33 CEST 2012


The beginning of the guide makes it look like I should use ZMQ_PUSH and
ZMQ_PULL to implement a worker-thread pool.

   - taskvent: Parallel task ventilator in C<http://zguide.zeromq.org/page:all>
   - taskwork: Parallel task worker in C <http://zguide.zeromq.org/page:all>
   - tasksink: Parallel task sink in C <http://zguide.zeromq.org/page:all>

If however I implement this using threads and the inter-thread socket I get
EADDRINUSE when trying to bind on second worker thread.

This is exactly as in Figure 65 - The SImple Black Box Pattern ?

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120607/7f2f00e8/attachment.htm>


More information about the zeromq-dev mailing list