当前位置:网站首页>GBASE 8s 并发控制之封锁操作
GBASE 8s 并发控制之封锁操作
2022-04-23 01:17:00 【八珍豆腐】
封锁&锁[lock]
相关概念
谁来实现上锁动作。
事务。(或者说,系统根据事务的需求来上锁)。
锁主的对象是谁
数据对象,可以是单行记录、数据页、索引、表甚至整个数据库。
上锁的目的是什么
避免其他事务访问数据对象产生数据不一致性错误。
上锁后的作用
数据对象被上锁后其他事务或操作就无法对该对象读或写,直到锁被释放。
锁能持续的时间
由事务决定。一般事务结束后会释放掉。
什么是锁
根据锁定的资源可分为数据库锁(Database-Level Lock)、表级锁(Table-Level Lock)、页级锁(Page Lock)、行级锁(Row Lock)以及索引(Index Key)等。
封锁是一种排队机制,将并行任务按照锁的先后顺序排队,把并行任务变成串行任务。
Gbase 8s 采用全局管理的封锁机制,在共享内存中分配一块内存集中标记锁的使用情况,在每个锁结构中保存锁的拥有者、锁定的对象、锁的类型。
版权声明
本文为[八珍豆腐]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_57486087/article/details/124347069
边栏推荐
- [the first contact between Android engineers and smart home products ③] the specific implementation of smartconfig one key distribution network on the hardware side | the specific implementation of es
- 智能照明控制系统在医院的设计与应用
- 【以太网交换安全】--- 交换机流量控制/DHCP Snooping/IP Source Guard
- Frequently asked questions about recent BSN development
- DCB“一哥”先瑞达,靠什么拉升价值曲线?
- Cloud native Virtualization: building edge computing instances based on kubevirt
- How to become a real digital enterprise? Ruijie network releases the digital force awakening plan
- 12 years of testing predecessors give you some suggestions for learning software testing
- Small example of gin - get request 1-handle handles get requests
- Yunrong technology joined the dragon dragon dragon community to help the digital transformation of the financial industry
猜你喜欢

Pilotage growth · ingenuity empowerment -- yonmaster developer training and pilotage plan is fully launched

gin框架的学习--golang

Tdengine deployment cluster installation

【Android工程师与智能家居产品的第一次接触③】SmartConfig一键配网在硬件端的具体实现|ESP8266一键配网在Arduino的具体实现|玉念聿辉

engine.POST()处理POST请求

App中使用微信公众号的模版消息来进行消息推送

On regular expression matching cryptography

Common problems and solutions of crashsight access reporting

Acrel-5000型建筑能耗监测系统在西咸空港花园项目的研究与应用

From construction to governance, the industry's first white paper on microservice governance technology was officially released (including a free download link)
随机推荐
Getting started with the go language is simple: the sortints method in sort
IMX6ULL裸機開發之硬件IIC分析及配置過程
Interface automation session authentication solution
What is the lifecycle of automated testing?
Processus d'analyse et de configuration du matériel IIC pour le développement de la machine nue imx6ull
Examples of branch and loop statements
How to become a real digital enterprise? Ruijie network releases the digital force awakening plan
Is 2022 software testing easy to learn? How long will it take? (learning roadmap attached)
"Self abuse artifact" exploded overnight: control your face with a handle, take your own code, and bear the consequences
gin -get请求的小示例2-Handle处理post请求
Linked list dynamic header insertion
From construction to governance, the industry's first white paper on microservice governance technology was officially released (including a free download link)
DCB“一哥”先瑞达,靠什么拉升价值曲线?
Android development art exploration notes (23), summary of Android advanced interview questions in 2022
App中使用微信公众号的模版消息来进行消息推送
GPT general timer analysis and configuration process of imx6ull bare metal development
C language guessing game and trickery game
Cai Guoqiang's fireworks NFT debut is as wonderful as fireworks during the day
Tdengine deployment cluster installation
Acrel-5000型建筑能耗监测系统在西咸空港花园项目的研究与应用