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