1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #1964 from limingzhong61/main

修改错别字
This commit is contained in:
Guide 2023-03-27 16:04:57 +08:00 committed by GitHub
commit ee1ef4a42b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -487,7 +487,7 @@ public class ReentrantLock implements Lock, java.io.Serializable {}
![](https://oss.javaguide.cn/github/javaguide/java/concurrent/reentrantlock-class-diagram.png)
`ReentrantLock` 默认使用非公平锁,也可以通过构造器来显的指定使用公平锁。
`ReentrantLock` 默认使用非公平锁,也可以通过构造器来显的指定使用公平锁。
```java
// 传入一个 boolean 值true 时为公平锁false 时为非公平锁