-
在 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
-
C superintendent, which was the expression evaluates procedures and laboratory r...
用C写的中缀表达式求值程序及实验报告。-C superintendent, which was the expression evaluates procedures and laboratory reports.
- 2022-01-31 00:34:31下载
- 积分:1
-
驱动程序开发宝典,内容很全面,翔实。
驱动程序开发宝典,内容很全面,翔实。-Driver Development for the book, which is very comprehensive and informative.
- 2022-09-30 12:10:05下载
- 积分:1
-
这是使用CPPUnit进行单体测试的一个Sample,对于使用CPPUnit的朋友可能会有一些帮助。...
这是使用CPPUnit进行单体测试的一个Sample,对于使用CPPUnit的朋友可能会有一些帮助。-CPPUnit This is for the use of a single test Sample, for the use of CPPUnit friends may be helpful.
- 2022-03-25 00:59:53下载
- 积分:1
-
浅析VC与matlab接口编程(一)
浅析VC与matlab接口编程(一) -simple analysis of interface program between vc and matlab(1)
- 2023-04-07 21:30:04下载
- 积分:1
-
《面向对象程序设计》 练习11的源代码
《面向对象程序设计》 练习11的源代码- Object-oriented programming, the source code of practice 11
- 2022-06-21 08:28:34下载
- 积分:1
-
Bluetooth link layer connectivity testing code, tools l2ping centralized source
蓝牙链路层连通性的测试代码,
工具集中的l2ping源码-Bluetooth link layer connectivity testing code, tools l2ping centralized source
- 2022-04-11 03:55:19下载
- 积分:1
-
进销存
本说明书是针对企业进销存管理系统软件的总体设计和实现说明,概括的记录了系统整体上实现技术层面的设计,它以需求说明作为依据,同时该文档将作为产品实现、特性要求和进度控制的依据。
本系统是一个小型的进销存管理系统,能有效的管理货物的进销存。满足与小型的公司日常货物的管理。使用的开发语言是Java,数据库使用Mysql。
- 2022-11-01 12:45:03下载
- 积分:1
-
一个在vb下实现动态连接库编程的很好的例子,通过它传出的数据保存到指定的文件中,然后在程序中进行调用...
一个在vb下实现动态连接库编程的很好的例子,通过它传出的数据保存到指定的文件中,然后在程序中进行调用-in vb under a dynamic link library programming a good example, it kept the reported data to a file, then the procedure for calling
- 2023-04-09 08:45:02下载
- 积分:1
-
一个简单的买卖点
该项目是自动控制和评估库存、 现金销售、 信用销售、 购买、 生成报告。
该数据库是 sql。
其简单和易于 cusstomize 或修改以满足客户的需要。
- 2022-06-03 13:55:34下载
- 积分:1