Python lock objects
Not reentrant:
lock.acquire(); lock.acquire() # i.e. twice!
blocks another thread calls
lock.release()
No "lock owner"
Solution:
threading.RLock class
(more expensive)
Previous slide
Next slide
Back to first slide
View graphic version