Python threading

Python threading.local Class

The threading.local class in Python’s threading module provides a way to manage thread-local data. Each thread that accesses a threading.local instance will have its own independent value for the attributes stored in it. This is useful for storing data that should not be shared between threads.

Scroll to Top