On Wed, Mar 18, 2009 at 8:25 PM, John Gaughan <[email protected]> wrote:
> In general, I try to avoid messing with process lists or manipulating
> user-visible operating system state. Even in Linux, you would be better
> off relying on a locking mechanism (an anchor file in /tmp, for example)
> if Linux does not provide something similar to a mutex (I am not
> familiar with the POSIX API so I cannot say if it does or does not).
semaphores have always been the traditional way of doing it on Unix
(including Linux), but I believe Linux has kernel-level support for
mutexes now also. And, of course, the POSIX threads library supports
mutexes.
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi