欢迎来到天天文库
浏览记录
ID:26659280
大小:178.00 KB
页数:46页
时间:2018-11-28
《操作系统习题》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、WORD格式可编辑1.1Whatarethethreemainpurposesofanoperatingsystem?Answer:•Toprovideanenvironmentforacomputerusertoexecuteprogramsoncomputerhardwareinaconvenientandefficientmanner.•Toallocatetheseparateresourcesofthecomputerasneededtosolvetheproblemgiven.Theallocationprocessshoul
2、dbeasfairandefficientaspossible.•Asacontrolprogramitservestwomajorfunctions:(1)supervisionoftheexecutionofuserprogramstopreventerrorsandimproperuseofthecomputer,and(2)managementoftheoperationandcontrolofI/Odevices.1.2Whatarethemaindifferencesbetweenoperatingsystemsformain
3、framecomputersandpersonalcomputers?Answer:Generally,operatingsystemsforbatchsystemshavesimplerrequirementsthanforpersonalcomputers.Batchsystemsdonothavetobeconcernedwithinteractingwithauserasmuchasapersonalcomputer.Asaresult,anoperatingsystemforaPCmustbeconcernedwithrespo
4、nsetimeforaninteractiveuser.Batchsystemsdonothavesuchrequirements.Apurebatchsystemalsomayhavenottohandletimesharing,whereasanoperatingsystemmustswitchrapidlybetweendifferentjobs.1.3Listthefourstepsthatarenecessarytorunaprogramonacompletelydedicatedmachine.Answer:a.Reserve
5、machinetime.b.Manuallyloadprogramintomemory.c.Loadstartingaddressandbeginexecution.d.Monitorandcontrolexecutionofprogramfromconsole.1.4Wehavestressedtheneedforanoperatingsystemtomakeefficientuseofthecomputinghardware.Whenisitappropriatefortheoperatingsystemtoforsakethispr
6、incipleandto“waste”resources?Whyissuchasystemnotreallywasteful?Answer:Single-usersystemsshouldmaximizeuseofthesystemfortheuser.AGUImight“waste”CPUcycles,butitoptimizestheuser’sinteractionwiththesystem.1.5Whatisthemaindifficultythataprogrammermustovercomeinwritinganoperati
7、ngsystemforareal-timeenvironment?Answer:Themaindifficultyiskeepingtheoperatingsystemwithinthefixedtimeconstraintsofareal-timesystem.Ifthesystemdoesnotcompleteataskinacertaintimeframe,itmaycauseabreakdownoftheentiresystemitisrunning.Thereforewhenwritinganoperatingsystemfor
8、areal-timesystem,thewritermustbesurethathisschedulingschemesdon’tallowresponsetimetoexceedthetim
此文档下载收益归作者所有