On Jan 2, 2013, at 3:23 PM, Nishant Mittal <nmit...@rblt.com> wrote:
> I know that zmq_sockets are not thread safe. however, is it an issue if I > ensure a socket is used ONLY by 1 thread at a time? > > the reason is ... > 1) my application creates 5 threads, does some calcs and then the threads exit > 2) this is done every minute. so every minute 5 new threads are created. > 3) I think i will run into a file descriptor issue if i create sockets inside > the thread (every time the thread is launched). so planning to create 5 > sockets when my application starts and then use 1 socket from 1 thread. > > is this going to be an issue? This is answered quite thoroughly in the FAQ. http://www.zeromq.org/area:faq cr _______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev