In Java, what is the difference between a monitor and a lock
Using the synchronized keyword method, using the javap command to view the bytecode, it is found that monitor is used, and if it is possible to call the monitor when the synchronized is implemented, is that my understanding, right? Please correct it if you do not. What is the relationship between them? What is the relationship between the lock and the monitor? From the official documentation of Locks and Synchronization ( https://docs.oracle.com/javase/tutorial/essential/concurrency/locksync.html ): Synchronization is built around an internal entity known as the intrinsic lock or monitor lock