Python standard library provides an Exclusive Lock for threads and Exclusive Lock for processes
fasteners provides additional three synchronization primitives:
- Exclusive Lock for independent processes
- Readers Writer Lock for independent processes
- Readers Writer Lock for threads
portarlocker: readers writer lock and semaphore for
independent processes, exclusive lock based on redis.
py-filelock: exclusive lock for independent processes.
pyReaderWriterLock: inter-thread readers writer
locks, optionally downgradable, with various priorities (reader, writer, fair).