Mechanisms for Sharing Resources

Learn about three mechanisms for sharing resources between threads in Python.

Python’s threading module provides three mechanisms for sharing resources between threads in different situations:

  • For synchronized access to shared resources, use a lock Lock.
  • For nested access to shared resources, use the reentrant lock RLock.
  • For permitting a
...

Get hands-on with 1400+ tech skills courses.