一、并发控制
1.关键字synchronzed修饰
2.加锁: private Lock lock = new ReentrantLock();
lock.lock();
lock.unlock();
【tip】java_1
原文:https://www.cnblogs.com/carsonwuu/p/8998113.html