synchronized-当执行内部代码时,锁定当前对象

执行方法过程,锁定当前对象。

原文地址:https://www.cnblogs.com/dangjunhui/p/5468833.html