testyahoo

yahoo 相册  时间:2021-02-22  阅读:()
AlternativeConcurrencyControlMethodsR&G-Chapter17RoadmapSofar:Correctnesscriterion:serializabilityLock-basedCCtoenforceserializabilityStrict2PLDeadlocksLockinggranularitiesTreelockingprotocolsPhantomsToday:AlternativeCCmechanismsOptimisticCC(Kung-Robinson)Lockingisaconservativeapproachinwhichconflictsareprevented.
Disadvantages:Lockmanagementoverhead.
Deadlockdetection/resolution.
Lockcontentionforheavilyusedobjects.
Lockingis"pessimistic"becauseitassumesthatconflictswillhappen.
WhatifconflictsarerareWemightgetbetterperformancebynotlocking,andinsteadcheckingforconflictsatcommittime.
Kung-RobinsonModelXactshavethreephases:READ:Xactsreadfromthedatabase,butmakechangestoprivatecopiesofobjects.
VALIDATE:Checkforconflicts.
WRITE:Makelocalcopiesofchangespublic.
RVWValidationIdea:testconditionsthataresufficienttoensurethatnoconflictoccurred.
EachXactassignedanumericid.
Justuseatimestamp.
AssignedatendofREADphase.
ReadSet(Ti):SetofobjectsreadbyXactTi.
WriteSet(Ti):SetofobjectsmodifiedbyTi.
Test1ForalliandjsuchthatTiWTS(O):AllowTtoreadO.
ResetRTS(O)tomax(RTS(O),TS(T))ChangetoRTS(O)onreadsmustbewrittentodisk!
Thisandrestartsrepresentoverheads.
TimestampCC:WhenXactTwantstoWriteObjectOIfTS(T)WTS(O))untilwriterofOcommits.
SimilartowritersholdingXlocksuntilcommit,butstillnotquite2PL.
T1T2W(A)R(A)W(B)CommitUnrecoverableschedulesareallowedbyTimestampCC!
Recoverableschedule:xactscommitonlyafter(andif)allxactswhosechangestheyreadcommitAweakerconditionthanAvoidCascadingRollbackMultiversionTimestampCCIdea:Letwritersmakea"new"copywhilereadersuseanappropriate"old"copy:OO'O''MAINSEGMENT(CurrentversionsofDBobjects)VERSIONPOOL(Olderversionsthatmaybeusefulforsomeactivereaders.
)Readersarealwaysallowedtoproceed.
Butmaybeblockeduntilwritercommits.
MultiversionCC(Contd.
)Eachversionofanobjecthasitswriter'sTSasitsWTS,andtheTSoftheXactthatmostrecentlyreadthisversionasitsRTS.
Versionsarechainedbackward;wecandiscardversionsthatare"toooldtobeofinterest".
EachXactisclassifiedasReaderorWriter.
Writermaywritesomeobject;Readerneverwill.
XactdeclareswhetheritisaReaderwhenitbegins.
ReaderXactForeachobjecttoberead:FindsnewestversionwithWTSReaderXactsareneverrestarted.
However,mightblockuntilwriteroftheappropriateversioncommits.
ToldnewWTStimelineWriterXactToreadanobject,followsreaderprotocol.
Towriteanobject:FindsnewestversionVs.
t.
WTSIfRTS(V))Else,rejectwrite.
ToldnewWTSCVVRTS(V)SummaryOptimisticCCusingend-of-xact"validation"Goodif:Read-dominatedworkloadSystemhaslotsofextraresourcesMostrealsystemsuselockingSummary(Contd.
)Anotheralternative:TimestampCCDecidelogicalxactexecutionorderwhenxactsentersystemEnforcebycomparingxacttimestampswithobjecttimestampsVariant:MultiversionCCKeepout-of-dateversionsofobjects,so"old"readersdon'thavetorestart(theycanrun"inthepast")OracleusesaflavorofmultiversionCC

iON Cloud:新加坡cn2 gia vps/1核/2G内存/25G SSD/250G流量/10M带宽,$35/月

iON Cloud怎么样?iON Cloud升级了新加坡CN2 VPS的带宽和流量最低配的原先带宽5M现在升级为10M,流量也从原先的150G升级为250G。注意,流量也仅计算出站方向。iON Cloud是Krypt旗下的云服务器品牌,成立于2019年,是美国老牌机房(1998~)krypt旗下的VPS云服务器品牌,主打国外VPS云服务器业务,均采用KVM架构,整体性能配置较高,云服务器产品质量靠...

美得云(15元/月)美国cera 2核4G 15元/月 香港1核 1G 3M独享

美得云怎么样?美得云好不好?美得云是第一次来推广软文,老板人脾气特别好,能感觉出来会用心对待用户。美得云这次为大家提供了几款性价比十分高的产品,美国cera 2核4G 15元/月 香港1核 1G 3M独享 15元/月,并且还提供了免费空间给大家使用。嘻嘻 我也打算去白嫖一个空间了。新用户注册福利-8折优惠码:H2dmBKbF 截止2021.10.1结束。KVM架构,99.99%高可用性,依托BGP...

Spinservers:美国独立服务器(圣何塞),$111/月

spinservers是Majestic Hosting Solutions,LLC旗下站点,主营美国独立服务器租用和Hybrid Dedicated等,spinservers这次提供的大硬盘、大内存服务器很多人很喜欢。TheServerStore自1994年以来,它是一家成熟的企业 IT 设备供应商,专门从事二手服务器和工作站业务,在德克萨斯州拥有40,000 平方英尺的仓库,库存中始终有数千台...

yahoo 相册为你推荐
iphone5解锁捡了个苹果5怎么解锁雅虎社区雅虎资讯在哪里提交无线路由器限速设置如何设置无线路由器局域网限速?arm开发板单片机开发板与ARM开发板有什么不同?彩信中心移动的短信中心号码是多少idc前线永恒之塔内侧 删档吗 ?mate8价格华为mate8 128g售价多少钱分词技术中文分词的应用系统分析员考系统分析员有什么好处?域名库电脑上文件有多少域名?各什么意思?
备案未注册域名 香港vps主机 inmotionhosting mediafire 512au 权嘉云 服务器是干什么的 免费申请个人网站 1美金 腾讯总部在哪 宏讯 网页提速 免费稳定空间 国外免费云空间 镇江高防服务器 发证机构 美国达拉斯 卡巴斯基免费下载 压力测试工具 linuxvi命令 更多