顶层接口:
lock() // 如果锁可用就获得锁,如果锁不可用就阻塞直到锁释放
lockInterruptibly() // 和 lock()方法相似, 但阻塞的线程可中断,抛出 java.lang.InterruptedExcepti
2024-09-01