critical section

David LeBlanc whisper at oz.net
Sun Mar 2 14:42:40 EST 2003


> -----Original Message-----
> From: python-list-admin at python.org
> [mailto:python-list-admin at python.org]On Behalf Of John Burton
> Sent: Sunday, March 02, 2003 8:51
> To: python-list at python.org
> Subject: critical section
>
>
> Are there any python facilities for synchronising access to a
> resource from
> two seperate processes running python programs? Semaphores etc?
> Or do I have
> to drop down to calling OS facilities. I didn't see anything but sometimes
> it's hard to know what to look for,..

Check out the standard threading module, in particular, the Lock, Rlock,
Semaphore and BoundedSemaphore methods. The Queue module may be of interest
too.

Dave LeBlanc
Seattle, WA USA






More information about the Python-list mailing list