当前位置:网站首页>MySQL pessimistic lock
MySQL pessimistic lock
2022-07-25 16:05:00 【Leon_ Jinhai_ Sun】
Pessimistic lock is a kind of thought , seeing the name of a thing one thinks of its function , Is very pessimistic , Be conservative about data being modified by other transactions , It will be realized through the lock mechanism of the database itself , So as to ensure the exclusivity of data operation .
Pessimistic lock always assumes the worst , Every time I go to get the data, I think others will modify it , So every time I get the data, I lock it , So that if people want to take this data, they will Blocking Until it gets the lock ( Shared resources are used by only one thread at a time , Other threads are blocking , Transfer resources to other threads after use ). For example, line locks. , Table lock, etc. , Read the lock , Write locks, etc. , It's all locked before the operation , When other threads want to access data , All need to block pending .Java in synchronized and ReentrantLock Waiting for exclusive lock is the realization of pessimistic lock thought .
边栏推荐
- MySQL metadata lock (MDL)
- Simple rotation map and hamster beating
- mysql意向锁
- [wechat applet] detailed explanation of applet host environment
- How to disable hosting when Flink SQL in flink-1.13.6 runs in yarn session mode
- 产品动态丨Android 13 高效适配全新升级
- Zhaoqi Kechuang high-level innovation and Entrepreneurship Talent Service Platform at home and abroad, mass entrepreneurship and innovation achievement transformation platform
- Leetcode:154. find the minimum value II in the rotation sort array [about the middle and rear positioning dichotomy of the rotation sort array]
- 推荐系统-协同过滤在Spark中的实现
- Golang review summary
猜你喜欢

HDD Hangzhou station · harmonyos technical experts share the features of Huawei deveco studio

Upgrade esxi6.7.0 to 7.0u3f (updated on July 12, 2022)

通用测试用例写作规范
![Leetcode:528. select randomly according to the weight [ordinary random failure + prefix and dichotomy]](/img/fb/8178388f8c9ac80d95140378d24238.png)
Leetcode:528. select randomly according to the weight [ordinary random failure + prefix and dichotomy]

Waterfall flow layout

leetcode:6127. 优质数对的数目【位运算找规律 + 两数之和大于等于k + 二分】

共2600页!又一份神级的面试手册面世~

泰雷兹推出解决方案,助力SAP客户控制云端数据

基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现

How Google cloud disk is associated with Google colab
随机推荐
终极套娃 2.0 | 云原生交付的封装
食品安全丨无处不在的冷冻食品,你真的了解吗?
Product dynamics - Android 13 high-efficiency adaptation new upgrade
Dpdk packet receiving and sending problem case: non packet receiving problem location triggered by mismatched packet sending and receiving function
产品动态丨Android 13 高效适配全新升级
MySQL教程65-MySQL操作表中数据
面试8家公司,1周拿了5个offer,分享一下自己的心得
排他锁(EXclusive Lock)
权限管理-删除菜单(递归)
R语言使用gt包和gtExtras包漂亮地显示表格数据:gt_bar_plot函数和gt_plt_bar_pct函数可视化百分比条形图、原始数据的百分比条形、缩放后的数据的百分比条形、指定数据对齐宽度
Exclusive lock
Data system partition design - partition and secondary index
国债年化利率太低了,有比国债逆回购年化利率还要高的理财产品吗?
Recursive menu query (recursion: check yourself)
Save the image with gaussdb (for redis), and the recommended business can easily reduce the cost by 60%
哪个led显示屏厂家更好
Which led display manufacturer is better
百奥赛图与LiberoThera共同开发全人GPCR抗体药物取得里程碑式进展
Ml image depth learning and convolution neural network
ServletConfig 类和ServletContext 类