On Fri, Nov 4, 2011 at 2:39 PM, Martin Sustrik <[email protected]> wrote:

> Hi Saju,
>
>
>   I am not able to replicate this behaviour. If I start the server your
>> server with a sleep(60) instead of the sleep(1), and then fire multiple
>> clients against this server, all clients get queued up with a ~60sec
>> delay between each client. The /*do work*/ payload of your main loop is
>> sequential.  As I understand IO is handled by independent IO threads but
>> that doesn't automatically "parallelize" your application itself.
>>
>
> If processing one task takes 60 secs, single thread obviously can't do
> more than 1 message a minute.
>
> To create a multithreaded server have a look here:
>
> http://www.zeromq.org/blog:**multithreaded-server<http://www.zeromq.org/blog:multithreaded-server>
>

Yes. This is the behavior I expect. I was surprised that OP was seeing
clients working in parallel - or perhaps I misunderstood his email.

-srp
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to