[zeromq-dev] equivalent of accept

Steven McCoy steven.mccoy at miru.hk
Wed Apr 21 02:25:51 CEST 2010


On 21 April 2010 01:28, Brian Candler <B.Candler at pobox.com> wrote:

> On Tue, Apr 20, 2010 at 06:45:16PM +0200, Martin Sustrik wrote:
> > 0MQ does this for you. Actual networking stuff is done in I/O
> > thread(s). Your application thread is free to do the actual
> > processing.
>
> Could you also clarify for my benefit: if you have (say) five worker
> threads
> which want to handle incoming REQs from clients, should the five threads
> all
> call zmq_recv on the same socket, or should the five threads each create
> their own zmq_socket bound to the same proto/port?
>
>
>From my understanding it is each thread must have it's own ZMQ socket, there
is no thread safety for the sake of performance.  Therefore the second
option would have to be the only viable route.

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100421/990c9d43/attachment.html>


More information about the zeromq-dev mailing list