[zeromq-dev] multi io thread sync problem

Wolfgang Richter wolf at cs.cmu.edu
Mon Aug 1 14:43:28 CEST 2011

I believe this comes down to the way you're supposed to use ZeroMQ sockets: only one per thread and not shared across threads.  I think your were thinking about a case where multiple threads share a single socket?


On Aug 1, 2011, at 8:37 AM, kaka chen <kaka11.chen at gmail.com> wrote:

>   Hi all:
>     I read the source code of zeromq, but I don't know how to guarantee
> message sending/recving sync when using multi io thread. For example, if
> one thread recv a part of message, and then another thread recv this
> message and can not process this message correctly. so I think it should
> use a sync facility likes 'leader/followers' to prevent this problem.
> Kaka Chen
> _______________________________________________
> 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/20110801/e83f0afe/attachment.htm>

More information about the zeromq-dev mailing list