[zeromq-dev] Thread access when using the Java bindings

Jon Rowland jon.rowland at isam.com
Wed Nov 3 12:04:52 CET 2010


Hi all,

I understand from the core 0mq documentation that sockets have thread-affinity, and one should only access a socket via the thread that created it. I assume that this is also true when using the Java language bindings.

Using the Java bindings, is it possible to handover a socket from one thread to another? There are a few places in my application where it would be much easier if the socket was created in one thread but used in another. Is this possible assuming I put an appropriate Java memory barrier in the middle?

Thanks,
Jon Rowland

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101103/864b436f/attachment.htm>


More information about the zeromq-dev mailing list