mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
修改错别字
This commit is contained in:
parent
053c142747
commit
0e6fa5967e
@ -487,7 +487,7 @@ public class ReentrantLock implements Lock, java.io.Serializable {}
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
`ReentrantLock` 默认使用非公平锁,也可以通过构造器来显示的指定使用公平锁。
|
`ReentrantLock` 默认使用非公平锁,也可以通过构造器来显式的指定使用公平锁。
|
||||||
|
|
||||||
```java
|
```java
|
||||||
// 传入一个 boolean 值,true 时为公平锁,false 时为非公平锁
|
// 传入一个 boolean 值,true 时为公平锁,false 时为非公平锁
|
||||||
|
Loading…
x
Reference in New Issue
Block a user