You should audit your code for calls to zmq_init(). I would guess that each new 
"user thread" is calling that function which is unnecessary. You only need to 
call zmq_init() once *per process.*

cr

On Mar 19, 2012, at 4:49 AM, Zafar Iqbal wrote:

> Hi,
> 
> I have a question, in my application which is a multithreaded  process, I am 
> using inproc protocol to communicate between the process.
> I have observed after every new user thread creation 2 more new zmq threads 
> are getting created but when user thread is dying this zmq thread is still 
> there in the process hence the number of thread is increasing in the process. 
> Please suggest me what to be done to exit from those threads also.
> 
> Thanking you.
> 
> 
> regards,
> Zafar
> 
> 
> Larsen & Toubro Limited
> 
> www.larsentoubro.com
> 
> This Email may contain confidential or privileged information for the 
> intended recipient (s) If you are not the intended recipient, please do not 
> use or disseminate the information, notify the sender and delete it from your 
> system.
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to