How Java’s wait() Really Works: A Deep Dive into ObjectMonitor (Part 1)

When you write Java code like this: