mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
Update optimistic-lock-and-pessimistic-lock.md
删除多余的字
This commit is contained in:
parent
7598de7c9e
commit
cd1e5b44f8
@ -17,7 +17,7 @@ tag:
|
||||
|
||||
像 Java 中`synchronized`和`ReentrantLock`等独占锁就是悲观锁思想的实现。
|
||||
|
||||
**悲观锁通常多用于写多比较多的情况下(多写场景),避免频繁失败和重试影响性能。**
|
||||
**悲观锁通常多用于写比较多的情况下(多写场景),避免频繁失败和重试影响性能。**
|
||||
|
||||
## 什么是乐观锁?使用场景是什么?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user