mutex

mutex — Mutual exclusion support

Deprecated since version 2.6: The mutex module has been removed in Python 3.

The mutex module defines a class that allows mutual-exclusion via acquiring and releasing locks. It does not require (or imply) threading or multi-tasking, though it could be useful for those purposes.

The mutex