[zeromq-dev] Is it possible to get deadlocks in ZeroMQ applications?
Timothee Besset
ttimo at ttimo.net
Mon Apr 8 19:16:05 CEST 2013
I've also had deadlock cases where two threads would use several zmq
sockets to communicate with each other (for instance with both a REP/REQ
and a PAIR)
It's easy in those cases to have deadlocks, unless you use a poll to wait
on all of them at the same time.
TTimo
On Mon, Apr 8, 2013 at 12:04 PM, Garrett Smith <g at rre.tt> wrote:
> On Mon, Apr 8, 2013 at 11:52 AM, A. Mark <gougolith at gmail.com> wrote:
> > Yes I agree, I've not had a single deadlock in a classic sense since
> using
> > message queues. But this statement is like saying I've hand not a car
> > accident since I've been riding a bike. You can still lock up your code
> but
> > it will not be a classic deadlock. I guess you could incorrectly code
> > something with message queues and have it lock up occasionally.
>
> The one area I keep an eye on in shared-nothing single threaded
> applications is accidentally waiting on one's self -- this is easy to
> do, but also easy to detect and fix!
>
> Garrett
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130408/4efc5059/attachment.htm>
More information about the zeromq-dev
mailing list