共享锁: 排他锁: CAS乐观锁(version): 悲观锁:
时间: 2023-12-06 21:47:10 浏览: 84
共享锁,更新锁,乐观锁,悲观锁 和 数据库中锁的使用.doc
共享锁是一种锁定资源的方式,允许多个线程同时读取该资源,但不允许修改该资源。其他线程可以继续追加共享锁,但不能追加排他锁。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [MySql: 表级锁、行级锁、共享锁、排他锁、乐观锁、悲观锁](https://blog.csdn.net/hanchao5272/article/details/98607314)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [知识点:乐观锁、悲观锁](https://blog.csdn.net/qq_36769100/article/details/123222742)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文