Re: inter-process mutexes
On Sat, 21 Mar 2009, Tom Anderson wrote:
On Fri, 20 Mar 2009, ed.peschko@gmail.com wrote:
Anyways, I'm hesitant to program anything like this if it exists, so
let me rephrase the question - is there a pragmatic, open platform that
does something like this, which is mostly free of warts and supports a
large subset of OSes?
You may want a lock manager:
http://en.wikipedia.org/wiki/Distributed_lock_manager
I was thinking about this a bit more after i posted. If you can get what
you want from file locks, use those. If you can't, forget third-party
solutions or other cleverness, and write your own. Access it via RMI.
The thing is, a lock manager of the kind you want is actually a pretty
simple component. Two or three classes, a couple of hundred lines of code,
tops. It'd be quicker to write exactly the thing you want than to spend
ages searching for something already written, and then customising the
not-quite-right thing you found.
tom
--
NTK now entirely filled with google links -- NTK