RLock

This lesson explains the reentrant lock in python's threading module.

We'll cover the following...

Introduction

A reentrant lock is defined as a lock which can be reacquired by the same thread. A RLock object carries the notion of ownership. If a thread acquires a RLock object, it can chose to reacquire it as many times as possible. Consider the following snippet:

Reentrant lock

# create a
...