Deadlocks
Let's look into the scenarios when deadlocks occur.
We'll cover the following...
We'll cover the following...
Pitfalls of the concurrent.futures module
One of the pitfalls of the concurrent.futures module is that you can accidentally create deadlocks when the caller to associate with a Future is also waiting on the results of another future.
This sounds kind of confusing, so let’s look at an example:
Here we import the ThreadPoolExecutor class ...