欢迎来到天天文库
浏览记录
ID:38789626
大小:76.50 KB
页数:11页
时间:2019-06-19
《斯坦福大学2003年操作系统期末考试题(英文)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、FINALEXAM–INTRODUCTIONTOOPERATINGSYSTEMSCSE421May2,2003(Spring2003)NAME:_____________________________________________________________STUDENTNUMBER:_________-_________INSTRUCTIONSThisisaclosedbookbutyouareallowedtwosheetsofinformationtoreferto.Youhave180minutestocomplete10questions.Pleasew
2、riteneatlyandclearly.Toreceivepartialcredit,youmustshowallworkforyouranswers.Youshouldhave11pagesinthisexambook,someofwhichareblanktoallowroomforyouranswers.QuestionGrade1____/202____/203____/104____/145____/206____/167____/108____/109____/1010____/10Total____/140RawScore:___________/140=
3、____________/1001)[20Points]DeadlockConsiderthefollowingsnapshotofasystem(P=Process,R=Resource):AvailableRARBRCRD8597MaximumDemandRARBRCRDP03214P10252P25105P31530P43033CurrentAllocationRARBRCRDP01011P10121P24003P31210P41030Answerthefollowingquestionsusingbanker’salgorithm:a)CalculatetheNe
4、edsmatrix:NeedsRARBRCRDP0P1P2P3P4b)Isthesysteminasafestate?Ifso,showasafeorderinwhichtheprocessescanrun.c)CanarequestofoneinstanceofRAbyProcessP0begrantedsafelyaccordingtoBanker’salgorithm?112)[20points]LogicalandPhysicalAddressSpacesTheKiwi™memoryarchitecturedesignteamhasadilemma.Theteam
5、isconsideringseveraldifferentmemoryconfigurationvariationsforanupcomingmachinedesign.Considerthefollowingdesigns(Allmemoryaccessesareintermsofbytes,andallareusingpagingtechniques):CharacteristicDesign1Design2Design3PhysicalMemoryAddressWidth8bit16bit32bitLogicalAddressWidth12bit20bit24bit
6、Page/Framesizeinbytes16bytes32bytes64bytesPageTableTypeSingleSingleDoublea)[6points]Foreachdesign,listthemaximumnumberofpageseachprocesscanaccessinlogicaladdressspace.b)[6points]Foreachdesign,listthemaximumnumberofframesinphysicalmemory.c)[6points]Fordesign3,iftheoutermostpagetableholds32
7、entries,howmanybitsareneededinthelogicaladdresstorepresenttheouterpagetable?Howmanybitsareusedforrepresentingtheoffsetwithinapage?Howmanybitsareneededinthelogicaladdressinordertorepresenttheinnerpagetable?113)[4+4+2=10points]PageReplacementGiventhefollowingreference
此文档下载收益归作者所有