Re: [zeromq-dev] behavior or zmq

2014-08-21 Thread Thomas Rodgers
use the appropriate socket type (eg PAIR) connected over the 'inproc://'
transport to replace your queues, DO NOT share sockets between threads
(context is ok).  With PAIR you also have to arrange to call bind() before
the other thread calls connect().


On Thu, Aug 21, 2014 at 7:28 AM, Raju Kundhe  wrote:

> I want to know how will be the behavior of zmq ctx effect
> in posix threads !!
>
> I've an application which has threads and  message queues for
> inter-process communication.
> Now, I want to replace message queues with 'zmq' in threaded environment.
>
> what is the good approach to do so? or If I start doing this what are the
> main problem's I could face?
>
> ___
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] behavior or zmq

2014-08-21 Thread Pieter Hintjens
ZMQ works very well with threads, however not in the traditional
fashion of sharing data with mutexes.

Please read the Guide section on multithreading and learn how to use
ZMQ sockets to communicate between threads.

On Thu, Aug 21, 2014 at 2:28 PM, Raju Kundhe  wrote:
> I want to know how will be the behavior of zmq ctx effect
> in posix threads !!
>
> I've an application which has threads and  message queues for inter-process
> communication.
> Now, I want to replace message queues with 'zmq' in threaded environment.
>
> what is the good approach to do so? or If I start doing this what are the
> main problem's I could face?
>
> ___
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev