-
在 DBMS 中,可以使用锁来控制多个程序对数据项的访问:当程序要访问数据项时,要给数据项上锁。如果它仅仅是读取数据项,则通常上共享锁,这样其它的事务也可以同时...
在 DBMS 中,可以使用锁来控制多个程序对数据项的访问:当程序要访问数据项时,要给数据项上锁。如果它仅仅是读取数据项,则通常上共享锁,这样其它的事务也可以同时读取该数据项。而若此程序是要修改数据项,则会给它数据项上独占锁,此时其它程序也就不能再访问这个数据项了。
对于同一个数据项,若有不同的程序同时给一个数据项上锁,且其中至少有一个是独占锁时,就表示它们发生了冲突。当发生冲突时,加锁的请求就会被拒绝。
每个加锁请求包含三个元素:锁模式、事务标识符和数据项标识符。两个程序可以同时给数据项上锁,前提是它们没有冲突。
在早期开发阶段,你需要编写一个简单的锁管理程序来处理加锁请求。它使用以下的规则来处理各种请求:
若一个加锁请求与先前的加锁请求没有发生冲突,则 DBMS 许可这个加锁请求;
一旦允许了一个加锁请求,则它将永远锁定数据项,不会改变,也不会释放;
如果一个程序的加锁请求与已有的锁发生了冲突,则 DBMS 拒绝这个加锁请求;
如果一个程序的加锁请求被拒绝,则 DBMS 忽略由这个程序发出的后续所有加锁请求。-the DBMS can be used to control the number of locks on the data, of the visit : When the procedures to access data items, data items to give locked. If it is read-only data, usually sharing locks, such other matters can also read the data item. And if this procedure is to amend the data, it will give information on items exclusive lock, other programs at this time, it will not re-visit this item of data. For the same data, if a different procedure for a data item unlocked but at least there is an
- 2022-07-12 16:39:28下载
- 积分:1
-
台湾林智仁教授的libsvm源代码 通用的支持向量机算法研究平台...
台湾林智仁教授的libsvm源代码 通用的支持向量机算法研究平台-Taiwan Linzhiren Professor libsvm common source of support vector machine algorithm research platform
- 2022-08-26 10:02:02下载
- 积分:1
-
获取系统时间 and 获取当前时间..............并计算时间差
获取系统时间 and 获取当前时间..............并计算时间差-Access to system time and obtain the current time and calculate the time difference ..............
- 2022-10-08 17:55:02下载
- 积分:1
-
用风险投资实现的窗口系统,附带的基本功能…
用VC实现的window系统自带的那个计算器的基本功能-With VC realize the window system that comes with the basic functions of the calculator
- 2022-01-26 02:51:54下载
- 积分:1
-
CDMA的matlab实现
它主要是基于cdma的概念,能更好的理解用户对各种输入信号的测试,并取得良好的效果。
- 2022-06-03 07:57:18下载
- 积分:1
-
这是一个迷宫游戏1.
这是一个迷宫游戏1.-This a maze game 1.
- 2022-08-06 22:53:34下载
- 积分:1
-
这是一篇关于一种基于特征的GRID到TIN的转换算法的论文,结构完整。...
这是一篇关于一种基于特征的GRID到TIN的转换算法的论文,结构完整。-This is an article on the characteristics of a GRID-based conversion algorithm to TIN paper, the integrity of the structure.
- 2022-07-21 12:24:04下载
- 积分:1
-
用C语言写的 关于 航空订票系统的 代码 可能功能还不是很全 希望大家改正...
用C语言写的 关于 航空订票系统的 代码 可能功能还不是很全 希望大家改正-sfdsfsdjfsdljf fsdf jsd fkds s
- 2022-02-26 15:56:44下载
- 积分:1
-
根据值来取ID,或者根据ID来取值,便于两者之间的转换
根据值来取ID,或者根据ID来取值,便于两者之间的转换-Exchange from ID and values, we can tanslate between ID and values easily.
- 2022-08-07 11:30:05下载
- 积分:1
-
第47章 运行后自销毁的程序 适合广大爱好vc的朋友,有一定的参考价值...
第47章 运行后自销毁的程序 适合广大爱好vc的朋友,有一定的参考价值-Chapter 47 after running from the destruction of the procedures for vc-loving friend, a certain reference value
- 2022-06-21 05:14:08下载
- 积分:1