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

RAKSmart VPS主机半价活动 支持Windows系统 包含香港、日本机房

RAKSmart 商家最近动作还是比较大的,比如他们也在增加云服务器产品,目前已经包含美国圣何塞和洛杉矶机房,以及这个月有新增的中国香港机房,根据大趋势云服务器算是比较技术流的趋势。传统的VPS主机架构方案在技术层面上稍微落后一些,当然也是可以用的。不清楚是商家出于对于传统VPS主机清理库存,还是多渠道的产品化营销,看到RAKSmart VPS主机提供美国、香港和日本机房的半价促销,当然也包括其他...

gcorelabs:CDN业务节点分布100多个国家地区,免费版提供1T/月流量

卢森堡商家gcorelabs是个全球数据中心集大成的运营者,不但提供超过32个数据中心的VPS、13个数据中心的cloud(云服务器)、超过44个数据中心的独立服务器,还提供超过100个数据中心节点的CDN业务。CDN的总带宽容量超过50Tbps,支持免费测试! Gcorelabs根据业务分,有2套后台,分别是: CDN、流媒体平台、DDoS高防业务、块存储、cloud云服务器、裸金属服务器...

pigyun25元/月,香港云服务器仅起;韩国云服务器,美国CUVIP

pigyun怎么样?PIGYun成立于2019年,2021是PIGYun为用户提供稳定服务的第三年,期待我们携手共进、互利共赢。PIGYun为您提供:香港CN2线路、韩国CN2线路、美西CUVIP-9929线路优质IaaS服务。月付另有通用循环优惠码:PIGYun,获取8折循环优惠(永久有效)。目前,PIGYun提供的香港cn2云服务器仅29元/月起;韩国cn2云服务器仅22元/月起;美国CUVI...

yahoo 相册为你推荐
回收站在哪回收站去哪里了?绵阳电信绵阳电信宽带套餐资费推荐如何免费开通黄钻怎么免费开通黄钻~~~?在线漏洞检测如果检测网站是否有漏洞?flash导航条如何添加FLASH导航条微信如何建群微信建群怎么建网站运营一般网站如何运营qq怎么发邮件手机QQ怎么发邮件人人逛街包公免费逛街打一成语宕机人们说的宕机是什么意思
域名批量查询 最新代理服务器ip 域名优惠码 服务器怎么绑定域名 国外免费空间 免费网络电视 web服务器架设软件 godaddy域名证书 web服务器架设 169邮箱 美国堪萨斯 福建铁通 昆明蜗牛家 网游服务器 备案空间 国内域名 国外的代理服务器 西安主机 万网注册 服务器硬件配置 更多