[zeromq-dev] Several Context object per JVM
Joshua Foster
jhawk28 at gmail.com
Tue Apr 30 18:42:14 CEST 2013
You can just create one context and share between threads. You want to
share the context between threads so that it can use "inproc"
connections between threads.
The '1' is used to tell ZeroMQ to only use one io thread in the
background. You generally don't need more than one unless you have ALOT
of data.
Joshua
Erwin Karbasi wrote:
>
> Hello Masters,
>
> I'm using 0MQ's JAVA binding.
> How can I create several Context objects per JVM as follows:
>
> Context context = ZMQ.context(1);
>
> Do I need create context per thread or I have other options?
>
> What is the number parameter (1) purpose that we pass to the context
> method?
>
> Thanks in advance,
> Erwin Karbasi
> AT&T, Senior Software Architect
> _______________________________________________
> 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/20130430/7b1adfad/attachment.htm>
More information about the zeromq-dev
mailing list