- 1、本文档共52页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
PROTOCOLS(基于锁的协议)
Chapter 16: Concurrency Control Lock-Based Protocols(基于锁的协议) Lock-Based Protocols (Cont.) Lock-Based Protocols (Cont.) Lock-Based Protocols (Cont.) Pitfalls of Lock-Based Protocols Pitfalls of Lock-Based Protocols (Cont.) The Two-Phase Locking Protocol(两段锁协议) The Two-Phase Locking Protocol (Cont.) The Two-Phase Locking Protocol (Cont.) Lock Conversions(锁的转换) Lock Conversions(锁的转换) Graph-Based Protocols(基于图的协议) Tree Protocol(树形协议) Tree Protocol Tree Protocol(Cont.) Timestamp-Based Protocols (基于时间戳的协议) Timestamp-Based Protocols (Cont.) Timestamp-Based Protocols (Cont.) Example Use of the Protocol Example Use of the Protocol Thomas’ Write Rule(托马斯写规则) Validation-Based Protocol (基于有效性检查的协议) Validation-Based Protocol (Cont.) Schedule Produced by Validation Multiple Granularity (多粒度) Example of Granularity Hierarchy Multiversion Schemes (多版本机制) Deadlock Handling (死锁处理) Deadlock Handling More Deadlock Prevention Strategies Deadlock prevention (Cont.) Deadlock Detection Deadlock Detection (Cont.) Deadlock Recovery Insert and Delete Operations Insert and Delete Operations (Cont.) Index Locking Protocol Weak Levels of Consistency Degree-two consistency: differs from two-phase locking in that S-locks may be released at any time, and locks may be acquired at any time X-locks must be held till end of transaction Serializability is not guaranteed, programmer must ensure that no erroneous database state will occur] Cursor stability: For reads, each tuple is locked, read, and lock is immediately released X-locks are held till end of transaction Special case of degree-two consistency Weak Levels of Consistency in SQL SQL allows non-serializable executions Serializable: is the default Repeatable read: allows only committed records to be read, and repeating a read should return the same value (so read locks should be retained) However, the phantom phenomenon need not be prevented T1 may see some records inserted by T2, but may not see others inserted by T2 Read committed: same as
您可能关注的文档
- Intel汇编语言程序设计(第五版)chapt_14.ppt
- INTEL 与AMD cpu产品线.doc
- ipad视频格式转换_确然转码大师.doc
- IPSec_VPN基本原理.doc
- IPL rejuvenation(彩光嫩肤).pptx.pptx
- IP与子网划分.ppt
- ip课程规划.doc
- ISO20000配置管理程序.doc
- ISO9000导入教程.ppt
- Issue分类 科技.doc
- 新高考生物二轮复习讲练测第6讲 遗传的分子基础(检测) (原卷版).docx
- 新高考生物二轮复习讲练测第12讲 生物与环境(检测)(原卷版).docx
- 新高考生物二轮复习讲练测第3讲 酶和ATP(检测)(原卷版).docx
- 新高考生物二轮复习讲练测第9讲 神经调节与体液调节(检测)(原卷版).docx
- 新高考生物二轮复习讲练测第11讲 植物生命活动的调节(讲练)(原卷版).docx
- 新高考生物二轮复习讲练测第8讲 生物的变异、育种与进化(检测)(原卷版).docx
- 新高考生物二轮复习讲练测第5讲 细胞的分裂、分化、衰老和死亡(讲练)(原卷版).docx
- 新高考生物二轮复习讲练测第5讲 细胞的分裂、分化、衰老和死亡(检测)(原卷版).docx
- 新高考生物二轮复习讲练测第12讲 生物与环境(讲练)(原卷版).docx
- 新高考生物二轮复习讲练测第11讲 植物生命活动的调节(检测)(原卷版).docx
文档评论(0)