-
在 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
-
利用VC+ARCOBJECTS开发的简单示例
利用VC+ARCOBJECTS开发的简单示例-VC ARCOBJECTS development of the simple examples
- 2022-03-11 15:50:31下载
- 积分:1
-
Show based on the TCP/IP
显示基于 TCP/IP 的 NetBIOS (NetBT) 协议统计资料、本地计算机和远程计算机的 NetBIOS 名称表和 NetBIOS 名称缓存。Nbtstat 可以刷新 NetBIOS 名称缓存和使用 Windows Internet 名称服务 (WINS) 注册的名称-Show based on the TCP/IP-NetBIOS (NetBT) protocol statistics, the local computer and remote computer" s NetBIOS name tables and NetBIOS name cache. Nbtstat can refresh NetBIOS name cache and the use of Windows Internet Name Service (WINS) name registration
- 2022-04-17 03:16:28下载
- 积分:1
-
华为机试题目即源码
华为机试题目即源码 华为机试题目即源码 华为机试题目即源码 华为机试题目即源码 华为机试题目即源码
- 2022-05-19 05:36:49下载
- 积分:1
-
对于wince的一个应用说明,这样方便初学者进行开发应用
对于wince的一个应用说明,这样方便初学者进行开发应用-For a wince application notes, this easy for beginners to the development and application of
- 2023-08-10 01:20:02下载
- 积分:1
-
关于文件使用的经典C代码
关于文件使用的经典C代码-document on the use of the classic C code
- 2023-07-27 12:05:04下载
- 积分:1
-
一种基于组合神经网络分类器
A neural network classifier based on Dempster-Shafer
theory
- 2022-09-04 21:50:02下载
- 积分:1
-
. WINAP of a similar MP3 player. And can make a Winap compared to the United Sta...
.一个类似WINAP的MP3播放器。做一个和能和Winap相比美的MP3播放器来听歌,相信你一定会很有成就感。-. WINAP of a similar MP3 player. And can make a Winap compared to the United States and the MP3 music player, I believe you will be a great sense of accomplishment.
- 2022-03-14 21:28:02下载
- 积分:1
-
英文字符识别程序,可以快速识别英文字符
英文字符识别程序,可以快速识别英文字符-English characters identification procedures can quickly identify English characters
- 2022-08-12 06:39:24下载
- 积分:1
-
Matlab编程,维特比软
program in matlab, viterbi soft
- 2023-06-15 15:10:03下载
- 积分:1