'Python multithreading: Is the thread that is notified through condition.notify() assured to take the lock?
Question in the title: When a thread goes on the wait() function, it goes into wait-c, and when another thread that currently has acquired the same lock of the same condition as the first thread executes the notify() function, the first thread that was in wait-c is now in wait-l, so it's waiting for the second thread to release the lock for it.
But if there are other threads waiting on that same lock, is the thread that was notified assured to take the lock when the thread that used notify() releases the lock at the end?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
