首页 > 其他 > 详细

乐观锁是基于比较的无锁并发控制机制

时间:2020-01-07 19:22:02      阅读:124      评论:0      收藏:0      [点我收藏+]

乐观锁是基于比较的无锁并发控制机制。

 

CAS

mvcc

 

The general idea is this:

技术分享图片
Optimistic locking

Each table you want to implement concurrent access to need a new column: Version. This column is usually an integer or a timestamp. Every time a record in the table changes, its version changes with it.

 

https://enterprisecraftsmanship.com/posts/optimistic-locking-automatic-retry/

乐观锁是基于比较的无锁并发控制机制

原文:https://www.cnblogs.com/feng9exe/p/12162725.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!