欢迎来到天天文库
浏览记录
ID:20170505
大小:176.50 KB
页数:46页
时间:2018-10-10
《操作系统习题》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、技术资料1.1Whatarethethreemainpurposesofanoperatingsystem?Answer:•Toprovideanenvironmentforacomputerusertoexecuteprogramsoncomputerhardwareinaconvenientandefficientmanner.•Toallocatetheseparateresourcesofthecomputerasneededtosolvetheproblemgiven.Theallocationprocessshouldbeasfairandefficientaspos
2、sible.•Asacontrolprogramitservestwomajorfunctions:(1)supervisionoftheexecutionofuserprogramstopreventerrorsandimproperuseofthecomputer,and(2)managementoftheoperationandcontrolofI/Odevices.1.2Whatarethemaindifferencesbetweenoperatingsystemsformainframecomputersandpersonalcomputers?Answer:Gener
3、ally,operatingsystemsforbatchsystemshavesimplerrequirementsthanforpersonalcomputers.Batchsystemsdonothavetobeconcernedwithinteractingwithauserasmuchasapersonalcomputer.Asaresult,anoperatingsystemforaPCmustbeconcernedwithresponsetimeforaninteractiveuser.Batchsystemsdonothavesuchrequirements.Ap
4、urebatchsystemalsomayhavenottohandletimesharing,whereasanoperatingsystemmustswitchrapidlybetweendifferentjobs.1.3Listthefourstepsthatarenecessarytorunaprogramonacompletelydedicatedmachine.Answer:a.Reservemachinetime.b.Manuallyloadprogramintomemory.c.Loadstartingaddressandbeginexecution.d.Moni
5、torandcontrolexecutionofprogramfromconsole.1.4Wehavestressedtheneedforanoperatingsystemtomakeefficientuseofthecomputinghardware.Whenisitappropriatefortheoperatingsystemtoforsakethisprincipleandto“waste”resources?Whyissuchasystemnotreallywasteful?Answer:Single-usersystemsshouldmaximizeuseofthe
6、systemfortheuser.AGUImight“waste”CPUcycles,butitoptimizestheuser’sinteractionwiththesystem.1.5Whatisthemaindifficultythataprogrammermustovercomeinwritinganoperatingsystemforareal-timeenvironment?Answer:Themaindifficultyiskeepingtheoperatingsystemwithinthefixedtimeconstraintsofareal-timesystem
7、.Ifthesystemdoesnotcompleteataskinacertaintimeframe,itmaycauseabreakdownoftheentiresystemitisrunning.Thereforewhenwritinganoperatingsystemforareal-timesystem,thewritermustbesurethathisschedulingschemesdon’tallowresponsetimetoexceedthetimecons
此文档下载收益归作者所有