多线程中 静态方法与非静态方法class对象与instance区别

class对象


instance对象


两者在静态方法中 加锁对象迥异 通过代码演示 同步块的加锁对象

你可能感兴趣的:(并发)