深入分析synchronized原理和锁膨胀过程
synchronized实现原理synchronized是依赖于JVM来实现同步的,在同步方法和代码块的原理有点区别。
同步代码块我们在代码块加上synchronized关键字
public
2020-09-06