SynChronized关键字详解

作为对象内置锁

给类加锁

方法块加锁

原文地址:https://www.cnblogs.com/ahpucd/p/13496527.html