Skip to content

Commit 6c5e0c6

Browse files
authored
Update 初识Lock与AbstractQueuedSynchronizer(AQS).md
1 parent 63cc93b commit 6c5e0c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

8.初识Lock与AbstractQueuedSynchronizer(AQS)/初识Lock与AbstractQueuedSynchronizer(AQS).md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
> void lock(); //获取锁
3030
> void lockInterruptibly() throws InterruptedException;//获取锁的过程能够响应中断
31-
> boolean tryLock();//非阻塞式响应中断能立即返回,获取锁放回true反之返回fasle
31+
> boolean tryLock();//非阻塞式响应中断能立即返回,获取锁返回true反之返回fasle
3232
> boolean tryLock(long time, TimeUnit unit) throws InterruptedException;//超时获取锁,在超时内或者未中断的情况下能够获取锁
3333
> Condition newCondition();//获取与lock绑定的等待通知组件,当前线程必须获得了锁才能进行等待,进行等待时会先释放锁,当再次获取锁时才能从等待中返回
3434

0 commit comments

Comments
 (0)