Fw: class mutex

Darrell Gallion darrell at dorb.com
Mon Oct 23 00:11:55 EDT 2000


I thought Semaphores might be a generally good way to handle this kind of
thing.
But on closer look there's a lot of talk about semaphores in all the
thread_xxx.h files.
And the history file:
- the Python thread module doesn't use semaphores (which aren't provided on
all platforms where Python threads are supported).

Looks like a messy problem.
--Darrell

----- Original Message -----
From: "Olivier Dagenais"
> MSDN says this about an article relating to CreateMutex:  "You can use a
> mutex object to protect a shared resource from simultaneous access by
> multiple threads or processes."  Does Unix/Linux also have something like
> this (at the process level)?  What about Mac and (maybe) other platforms?
> It would be nice if they were wrapped in one convenient Python
> module/object.
>
> It sounds like Windows uses a tempfile to accomplish this and I would
guess
> Unix/Linux - a file-oriented OS - would do the same thing.  However, these
> are just guesses, we'd need to confirm this...
>







More information about the Python-list mailing list