Lock和 ReentrantLock
Lock和 ReentrantLock
Lock接口
public interface Lock {
void lock();
void lockInterruptibly() throws InterruptedException;
boolean tryLock();
boolean tryLock(long time, TimeUnit unit) throw InterruptedException;
void unlock();
Condition
原创
2020-12-14 11:42:59 ·
1146 阅读 ·
0 评论