Right way to use ZMQ in multi threaded environment?
<p>My program uses ZMQ for communication. Namely, a server (C++, linux) creates an XPUB socket and then in one thread reads it, and in another one publishes data (writes).</p>

<p>The client (java, jzmq, linux) create a SUB socket, and subscribes using it.</p>

<p>After some time, the server side receives SIGABRT in the reading thread.</p>

<p>What may be a source of problem? Read/Write in different threads or creating XPUB/SUB pair? </p>

<p>In case the problem is in multi threading, what is a right paradigm to use XPUB socket?</p>