正在加载图片...
Lock-Based Protocols (Cont.) Lock-compatibility matrix S X S true false X false false Atransaction may be granted a lock on an item if the requested lock is compatible with locks already held on the item by other transactions Any number of transactions can hold shared locks on an item, but if any transaction holds an exclusive on the item no other transaction may hold any lock on the item. If a lock cannot be granted,the requesting transaction is made to wait till all incompatible locks held by other transactions have been released. The lock is then granted. Database System Concepts-5th Edition,Oct 5,2006 16.4 @Silberschatz,Korth and SudarshanDatabase System Concepts - 5 16.4 ©Silberschatz, Korth and Sudarshan th Edition, Oct 5, 2006 Lock-Based Protocols (Cont.) Lock-compatibility matrix A transaction may be granted a lock on an item if the requested lock is compatible with locks already held on the item by other transactions Any number of transactions can hold shared locks on an item, but if any transaction holds an exclusive on the item no other transaction may hold any lock on the item. If a lock cannot be granted, the requesting transaction is made to wait till all incompatible locks held by other transactions have been released. The lock is then granted
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有