[zeromq-dev] Thread-safe sockets (cont.)
Gary Wright
at2002+zmq at me.com
Fri Feb 17 05:09:12 CET 2012
On Feb 16, 2012, at 8:56 PM, john skaller wrote:
> There is an analogue in Posix: optional locking. It's fairly useless.
> Because anyone can write into a locked region of a file by ignoring
> the locks.
That is a pretty broad generalization. Advisory locks are quite useful
when you are dealing with co-operative access, which happens automatically
if you've got multiple clients utilizing the same library code.
I think it would be unusual to have arbitrary clients accessing something like
a shared file (or shared socket...).
Gary Wright
More information about the zeromq-dev
mailing list