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

御云(RoyalYun):香港CN2 GIA VPS仅7.9元每月起,美国vps仅8.9/月,续费同价,可叠加优惠

御云怎么样?炎炎暑期即将来临,御云(royalyun)香港、美国服务器开启大特惠模式。御云是新成立的云服务提供商,主要提供香港、美国的云服务器,不久将开启虚拟主机业务。我们的香港和美国主机采用CN2 GIA线路。目前,香港cn2 gia vps仅7.9元每月起,美国vps仅8.9/月,续费同价,可叠加优惠,香港云服务器国内延迟一般在50ms左右,是搭建网站的最佳选择,但是请不要用于违法用途。点击进...

GreenCloudVPS$20/年,新加坡/美国/荷兰vps/1核/1GB/30GB,NVMe/1TB流量/10Gbps端口/KVM

greencloudvps怎么样?greencloudvps是一家国外主机商,VPS数据中心多,之前已经介绍过多次了。现在有几款10Gbps带宽的特价KVM VPS,Ryzen 3950x处理器,NVMe硬盘,性价比高。支持Paypal、支付宝、微信付款。GreenCloudVPS:新加坡/美国/荷兰vps,1核@Ryzen 3950x/1GB内存/30GB NVMe空间/1TB流量/10Gbps...

CloudServer:$4/月KVM-2GB/50GB/5TB/三个数据中心

CloudServer是一家新的VPS主机商,成立了差不多9个月吧,提供基于KVM架构的VPS主机,支持Linux或者Windows操作系统,数据中心在美国纽约、洛杉矶和芝加哥机房,都是ColoCrossing的机器。目前商家在LEB提供了几款特价套餐,最低月付4美元(或者$23.88/年),购买更高级别套餐还能三个月费用使用6个月,等于前半年五折了。下面列出几款特别套餐配置信息。CPU:1cor...

yahoo 相册为你推荐
站长故事爱迪生发明东西的故事邮箱打不开怎么办我的邮箱打不开怎么办bluestacksbluestacks到底是叫蓝手指还是叫蓝叠1433端口如何打开1433端口不兼容WIN7 64位系统与某些软件不兼容怎么办?今日热点怎么删除千牛里面的今日热点怎么取消_?iphone越狱后怎么恢复苹果越狱后如何恢复小米手柄小米蓝牙游戏手柄怎么连接游戏三星s8什么时候上市三星s8什么时候上市 三星s8上市时间网络虚拟机VMware虚拟机三种网络模式的区别有哪些?
动态ip的vps 谷歌域名邮箱 中国域名网 zpanel 外贸主机 哈喽图床 godaddy支付宝 php免费空间 毫秒英文 刀片服务器是什么 怎么测试下载速度 服务器维护方案 卡巴斯基试用版 国外ip加速器 空间登入 下载速度测试 国内域名 群英网络 稳定空间 ncp 更多