On Wed, 26 Jun 2024 07:48:54 GMT, Daniel Jeliński <[email protected]> wrote:

> the waiting thread wakes up, but still needs to compete with the notifying 
> thread for the monitor. 

No, a notified thread is moved from the wait-queue to the monitor-entry queue. 
It is only unparked once the notifier thread releases the monitor.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/19778#issuecomment-2191581637

Reply via email to