reentrancy

What is the difference between Lock and RLock

What is the difference between Lock and RLock Question: From the docs: threading.RLock() — A factory function that returns a new reentrant lock object. A reentrant lock must be released by the thread that acquired it. Once a thread has acquired a reentrant lock, the same thread may acquire it again without blocking; the thread …

Total answers: 3