欢迎来到天天文库
浏览记录
ID:20911792
大小:494.50 KB
页数:92页
时间:2018-10-17
《操作系统习题》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、1.1Whatarethethreemainpurposesofanoperatingsystem?Answer:•Toprovideanenvironmentforacomputerusertoexecuteprogramsoncomputerhardwareinaconvenientandefficientmanner.•Toallocatetheseparateresourcesofthecomputerasneededtosolvetheproblemgiven.Theallocationprocessshouldbeasfairandefficientaspossible.
2、•Asacontrolprogramitservestwomajorfunctions:(1)supervisionoftheexecutionofuserprogramstopreventerrorsandimproperuseofthecomputer,and(2)managementoftheoperationandcontrolofI/Odevices.1.2Whatarethemaindifferencesbetweenoperatingsystemsformainframecomputersandpersonalcomputers?Answer:Generally,ope
3、ratingsystemsforbatchsystemshavesimplerrequirementsthanforpersonalcomputers.Batchsystemsdonothavetobeconcernedwithinteractingwithauserasmuchasapersonalcomputer.Asaresult,anoperatingsystemforaPCmustbeconcernedwithresponsetimeforaninteractiveuser.Batchsystemsdonothavesuchrequirements.Apurebatchsy
4、stemalsomayhavenottohandletimesharing,whereasanoperatingsystemmustswitchrapidlybetweendifferentjobs.1.3Listthefourstepsthatarenecessarytorunaprogramonacompletelydedicatedmachine.Answer:a.Reservemachinetime.b.Manuallyloadprogramintomemory.c.Loadstartingaddressandbeginexecution.d.Monitorandcontro
5、lexecutionofprogramfromconsole.1.4Wehavestressedtheneedforanoperatingsystemtomakeefficientuseofthecomputinghardware.Whenisitappropriatefortheoperatingsystemtoforsakethisprincipleandto“waste”resources?Whyissuchasystemnotreallywasteful?Answer:Single-usersystemsshouldmaximizeuseofthesystemfortheus
6、er.AGUImight“waste”CPUcycles,butitoptimizestheuser’sinteractionwiththesystem.1.5Whatisthemaindifficultythataprogrammermustovercomeinwritinganoperatingsystemforareal-timeenvironment?Answer:Themaindifficultyiskeepingtheoperatingsystemwithinthefixedtimeconstraintsofareal-timesystem.Ifthesystemdoes
7、notcompleteataskinacertaintimeframe,itmaycauseabreakdownoftheentiresystemitisrunning.Thereforewhenwritinganoperatingsystemforareal-timesystem,thewritermustbesurethathisschedulingschemesdon’tallowresponsetimetoexceedthetimeconstrai
此文档下载收益归作者所有