-
在 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
-
演示如何通过vb操作word
演示如何通过vb操作word-demonstrated how to operate word vb
- 2023-05-09 17:25:02下载
- 积分:1
-
冒泡程序,是您的textbox更直观,美观的现实出验证情况
冒泡程序,是您的textbox更直观,美观的现实出验证情况-Bubble process, is your textbox is more intuitive, aesthetically pleasing out the verification of the reality
- 2022-01-26 03:17:43下载
- 积分:1
-
Visual C++ 4.0 unleashed book attached sample CD
Visual C++ 4解开书籍附带的样本光盘内容包括内容,清晰实用
- 2022-03-29 11:50:32下载
- 积分:1
-
VC++
VC++实现文件监控
VC++实现文件监控
VC++实现文件监控-VC++
- 2022-03-26 16:08:30下载
- 积分:1
-
创建顺序文件,在ECLIPSE下编译通过,程序不大,很有特点.
创建顺序文件,在ECLIPSE下编译通过,程序不大,很有特点.-order to create documents in the Eclipse compiler, not procedure, unique features.
- 2022-07-22 20:07:40下载
- 积分:1
-
在WINDOWS CE系统上EVC开发的XP按钮的源码
在WINDOWS CE系统上EVC开发的XP按钮的源码 -in Windows CE system EVC development of XP button FOSS
- 2022-01-26 06:31:00下载
- 积分:1
-
an alarm clock procedures, wrote it myself not too good, for example only
一个闹钟程序,自己写的不太好,只作例子-an alarm clock procedures, wrote it myself not too good, for example only
- 2022-07-12 20:45:40下载
- 积分:1
-
VB考勤系统源程序
VB考勤系统源程序-VB source appraisal system
- 2023-07-31 01:50:03下载
- 积分:1
-
该代码实现背光亮度调节(PWM方式),在s3x6410上验证没有问题
该代码实现背光亮度调节(PWM方式),在s3x6410上验证没有问题-backlight control(PWM)
- 2022-07-26 06:08:41下载
- 积分:1