目录
[enter 与 exit](#enter 与 exit)
[这边是 1:2](#这边是 1:2)
命令

同步代码块
enter 与 exit

这边是 1:2

正常完成会解锁
保证异常 over 也会解锁

如果抛出异常

那么只有一个 enter 和 exit

同步方法

字节码
有一个标识


同步静态方法
字节码
跟同步方法相比多了一个静态的标识

为什么任何一个对象都能成为一个锁


Object 类是 Java 所有类的父类
java=c++--
每一个对象都有一个对象监视器
ObjectMonitor 中有几个关键属性

