[zeromq-dev] pyzmq and multiprocessing

Wiliam Souza wiliam at mandriva.com.br
Thu Dec 22 17:42:06 CET 2011


On 12/22/2011 01:03 PM, Ivo Danihelka wrote:
> On Thu, Dec 22, 2011 at 2:48 PM, Wiliam Souza<wiliam at mandriva.com.br>  wrote:
>> [1] http://pastebin.mandriva.com/38061
> I don't get the assert on zmq 2.1.4.
> The ControllerServer process does not receive any msg for me.
> I guess, multiprocessing is not compatible with zmq threads.
> The example worked, when I moved the zmq initialization inside run().
>
> I don't know multiprocessing internals. I would avoid mixing it with zeromq.
>
Ivo,
I changed the code[3] moved all pyzmq related part to run and it works.
I'm looking this examples [4] and it work with multiprocessing but it don't
use Python class.

[3] http://pastebin.mandriva.com/38068
[4] 
http://taotetek.wordpress.com/2011/02/02/python-multiprocessing-with-zeromq/

Regards,
Wiliam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111222/7edb9034/attachment.htm>


More information about the zeromq-dev mailing list