[zeromq-dev] Thread Safe sockets
Martin Sustrik
sustrik at 250bpm.com
Tue Feb 7 03:05:28 CET 2012
On 02/07/2012 10:56 AM, john skaller wrote:
>
> On 07/02/2012, at 12:16 PM, Martin Sustrik wrote:
>> 5. That being said, using single socket from multiple threads is not a
>> good design decision. It breaks the model of threads viewed as
>> stand-alone state machines communicating with the outside world via
>> exclusively owned sockets.
>
> Of course it does, because that's NOT the model of threads,
> the model you describe is processes.
Fair enough. However, I am not sure whether there's a practical
difference between the two.
Do we have an use case where the current model of non-thread-safe
sockets + ability to migrate sockets between threads is not sufficient?
Martin
More information about the zeromq-dev
mailing list