1. 注意synchronized必须锁的是共享资源 2. This指锁的是当前线程,其他线程等待当前线程执行完之后再执行 转载于:https://www.cnblogs.com/liling-bigdata/p/6944813.html