Synchronized关键字详解Monitor对象普通对象
wait()和notify()只有获取了锁的线程才能够调用 wait() 方法和 notify() 方法。
可重入锁 ReentrantLock通过 lockInterrupti
2023-03-13