欢迎来到天天文库
浏览记录
ID:23202483
大小:177.50 KB
页数:92页
时间:2018-11-04
《操作系统习题集》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、1.1Whatarethethreemainpurposesofanoperatingsystem?Answer:•Toprovideanenvironmentforacomputerusertoexecuteprogramsoncomputerhardwareinaconvenientandefficientmanner.•Toallocatetheseparateresourcesofthecomputerasneededtosolvetheproblemgiven.Theallocationprocessshouldbeasfairandeffi
2、cientaspossible.•Asacontrolprogramitservestwomajorfunctions:(1)supervisionoftheexecutionofuserprogramstopreventerrorsandimproperuseofthecomputer,and(2)managementoftheoperationandcontrolofI/Odevices.1.2Whatarethemaindifferencesbetweenoperatingsystemsformainframecomputersandperson
3、alcomputers?Answer:Generally,operatingsystemsforbatchsystemshavesimplerrequirementsthanforpersonalcomputers.Batchsystemsdonothavetobeconcernedwithinteractingwithauserasmuchasapersonalcomputer.Asaresult,anoperatingsystemforaPCmustbeconcernedwithresponsetimeforaninteractiveuser.Ba
4、tchsystemsdonothavesuchrequirements.Apurebatchsystemalsomayhavenottohandletimesharing,whereasanoperatingsystemmustswitchrapidlybetweendifferentjobs.1.3Listthefourstepsthatarenecessarytorunaprogramonacompletelydedicatedmachine.Answer:a.Reservemachinetime.b.Manuallyloadprograminto
5、memory.c.Loadstartingaddressandbeginexecution.d.Monitorandcontrolexecutionofprogramfromconsole.1.4Wehavestressedtheneedforanoperatingsystemtomakeefficientuseofthecomputinghardware.Whenisitappropriatefortheoperatingsystemtoforsakethisprincipleandto“waste”resources?Whyissuchasyste
6、mnotreallywasteful?Answer:Single-usersystemsshouldmaximizeuseofthesystemfortheuser.AGUImight“waste”CPUcycles,butitoptimizestheuser’sinteractionwiththesystem.1.5Whatisthemaindifficultythataprogrammermustovercomeinwritinganoperatingsystemforareal-timeenvironment?Answer:Themaindiff
7、icultyiskeepingtheoperatingsystemwithinthefixedtimeconstraintsofareal-timesystem.Ifthesystemdoesnotcompleteataskinacertaintimeframe,itmaycauseabreakdownoftheentiresystemitisrunning.Thereforewhenwritinganoperatingsystemforareal-timesystem,thewritermustbesurethathisschedulingschem
8、esdon’tallowresponsetimetoexceedthetimeconstrai
此文档下载收益归作者所有