[zeromq-dev] multi io thread sync problem

kaka chen kaka11.chen at gmail.com
Mon Aug 1 14:57:28 CEST 2011


Got it, thank you very much!

2011/8/1 Wolfgang Richter <wolf at cs.cmu.edu>

> 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?
>
> --
> Wolf
>
> 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
>
>
> _______________________________________________
> 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/529ad5f8/attachment-0001.htm>


More information about the zeromq-dev mailing list