Python mutual exclusion class for independent Python processes

Last updated: July, 6th 2006

download: source(python)

Description:

This class can be used to enforce mutual exclusion over multiple independent Python processes. if you do "python crit_sect.py" it will run its tests. To test the mutual exclusion run this application in several Xterms at the same time. Mutual exclusion is implemented using file locking, a better way to do this would be to use sockets instead for performance reasons.