计算机操作系统期末考试题集锦Word格式.doc

上传人:wj 文档编号:3654691 上传时间:2023-05-02 格式:DOC 页数:19 大小:167.50KB
下载 相关 举报
计算机操作系统期末考试题集锦Word格式.doc_第1页
第1页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第2页
第2页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第3页
第3页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第4页
第4页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第5页
第5页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第6页
第6页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第7页
第7页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第8页
第8页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第9页
第9页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第10页
第10页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第11页
第11页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第12页
第12页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第13页
第13页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第14页
第14页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第15页
第15页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第16页
第16页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第17页
第17页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第18页
第18页 / 共19页
计算机操作系统期末考试题集锦Word格式.doc_第19页
第19页 / 共19页
亲,该文档总共19页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

计算机操作系统期末考试题集锦Word格式.doc

《计算机操作系统期末考试题集锦Word格式.doc》由会员分享,可在线阅读,更多相关《计算机操作系统期末考试题集锦Word格式.doc(19页珍藏版)》请在冰点文库上搜索。

计算机操作系统期末考试题集锦Word格式.doc

5、Theoperatingsystemisresponsibleforthefollowingactivitiesinconnectionwithfilemanagement:

(Creatinganddeletingfiles),Creatinganddeletingdirectoriestoorganizefiles,Supportingprimitivesformanipulatingfilesanddirectories,Mappingfilesonto(secondarystorage),Backingupfilesonstable(nonvolatile)storagemedia.

6、Fiveservicesprovidedbyanoperatingsystemthataredesignedtomakeitmoreconvenientforuserstousethecomputersystemare(Program),I/Ooperations,File-systemmanipulation,(Communications)andErrordetection.

7、Thetwomodelsofinterprocesscommunicationaremessage-passingmodelandthe(share-memoryFF)model.

8、Systemcallsallow(running)processestorequestservicesoftheoperatingsystem.

9、Thethreemajoractivitiesofanoperatingsysteminregardtosecondary-storagemanagementareFree-spacemanagement,Storageallocationand(Diskscheduling).

10、Systemcallscanbegroupedroughlyintofivemajorcategories:

processcontrol,(filemanagement),devicemanipulation,(Informationmaintenance),andcommunications.

11、A(process)canbethoughtofasaprograminexecutionwhichwillneedcertainresources-suchasCPUtime,memory,files,andI/Odevices-toaccomplishitstask.

12、Twocommontechniquesforloadingexecutablefilesare(double-clicking)aniconrepresentingtheexecutablefileandenteringthenameoftheexecutablefileonthe(commandline).

13、Asaprocessexecutes,itchangesstatefromnewstate,(runningstate),waitingstate,(readystate),terminatedstate.

14、Theobjectiveofmultiprogrammingistohavesomeprocessrunningatalltimes,tomaximize(CPU)utilization.

15、Asprocessesenterthesystem,theyareputintoa(job)queue,whichconsistsofallprocessesinthesystem.

16、Thelong-termscheduler,or(jobscheduler),selectsprocessesfromthispoolandloadsthemintomemoryforexecution.

17、The(short-term)scheduler,orCPUscheduler,selectsfromamongtheprocessesthatarereadytoexecuteandallocatestheCPUtooneofthem.

18、Theprimarydistinctionbetweenthelong-termschedulerandtheshort-termschedulerschedulersliesin(frequency)ofexecution.

19、Whenaninterruptoccurs,thesystemneedstosavethecurrent(context)oftheprocesscurrentlyrunningontheCPUsothatitcan(restore)thatcontextwhenitsprocessingisdone,essentiallysuspendingtheprocessandthen(resuming)it.

20、Thecontextisrepresentedinthe(PCB)oftheprocess;

itincludesthevalueoftheCPUregisters,the(processstate)andmemory-managementinformation.

21、SwitchingtheCPUtoanotherprocessrequiresperformingastatesaveofthecurrentprocessandastaterestoreofadifferentprocess.Thistaskisknownasa(contextswitch).

22、Aprocessmaycreateseveralnewprocesses,viaacreate-process(systemcall),duringthecourseofexecution.Thecreatingprocessiscalledaparentprocess,andthenewprocessesarecalledthe(children)ofthatprocess.

23、Aprocessterminateswhenitfinishesexecutingitsfinalstatementandaskstheoperatingsystemtodeleteitbyusingthe(exit())systemcall.

24、Aprocessisindependentifitcannotaffectorbeaffectedby(theotherprocesses)executinginthesystem.

25、Theadvantagesofprocesscooperationinclude(information),computationspeed-up,modularityandconvenience.

26、Withindirectcommunication,themessagesaresenttoandreceivedfrommailboxes,orportswhichcanbeviewedabstractlyasanobjectintowhichmessagescanbeplacedbyprocessesandfromwhichmessagescanberemoved.

27、Messagepassingmaybeeitherblockingor(nonblocking)alsoknownas(synchronous)andasynchronous.

28、Whethercommunicationisdirectorindirect,messagesexchangedbycommunicatingprocessesresideinatemporaryqueues.Basically,suchqueuescanbeimplementedinthreeways:

(Zerocapacity),(Bounded)andunboundedcapacity.

29、A(thread)isabasicunitofCPUutilization;

ItcomprisesathreadID,aprogramCounter,aregisterset,andastack.

30、A(traditional)(orheavyweight)processhasa(single)threadofcontrol.Ifaprocesshasmultiplethreadsofcontrol,itcanperformmorethanonetaskatatime.

31、Thebenefitsofmultithreadedprogrammingcanbebrokendownintofourmajorcategories:

(Responsiveness),(Resource),Economy,Utilizationofmultiprocessorarchitecture.

32、CPU(scheduling)isthebasisofmulti-programmedoperatingsystems.ByswitchingtheCPUamong(processes),theoperatingsystemcanmakethecomputermoreproductive.

33、Processexecutionconsistsofacycleof(CPUexecution)andI/Owait.Processesalternatebetweenthesetwostates.

34、DispatchermodulegivescontroloftheCPUtotheprocessselectedbythe(short-term)scheduler;

Thisfunctioninvolves:

(switchingcontext),switchingtousermode,jumpingtotheproperlocationintheuserprogramtorestartthatprogram.

35、Thetimeittakesforthedispatchertostoponeprocessandstartanotherrunningisknownasthe(dispatchlatency).

36、ManycriteriahavebeensuggestedforcomparingCPUschedulingalgorithms.Thecriteriaincludethefollowing:

(CPUutilization),throughput,(turnaroud)time,waitingtime,(Responsetime).

37、TheSJFalgorithmcanbeeither(preemptive)ornonpreemptivewhichgivesminimum(averagewaiting)timeforagivensetofprocesses.

38、Amajorproblemwithpriorityschedulingalgorithmsisindefiniteblocking,orstarvation.Asolutiontotheproblemis(aging).

39、The(roundrobin)schedulingalgorithmisdesignedespeciallyfor(time-sharingsystem).ItissimilartoFCFSscheduling,butpreemptionisaddedtoswitchbetweenprocesses.

40、Asituationlikethis,whereseveralprocessesaccessandmanipulatethesamedataconcurrentlyandtheoutcomeoftheexecutiondependsontheparticularorderinwhichtheaccesstakesplace,iscalleda(racecondition).

41、Considerasystemconsistingofnprocesses{PO,PI,...,Pn-1).Eachprocesshasasegmentofcode,calleda(critical),inwhichtheprocessmaybechangingcommonvariables,updatingatable,writingafile,andsoon.

42、Asolutiontothecritical-sectionproblemmustsatisfythefollowingthreerequirements:

(Mutualexclusion),Progressand(Boundedwaiting).

43、Ingeneral,wecanstatethatanysolutiontothecritical-sectionproblemrequiresasimpletool-a(lock).Aprocessmustacquireitbeforeenteringacriticalsection.

44、Thevarioushardware-basedsolutionstothecritical-sectionproblemarecomplicatedforapplicationprogrammerstouse.Toovercomethisdifficulty,wecanuseasynchronizationtoolcalleda(semaphore).

45、AsemaphoreSisanintegervariablethat,apartfrominitialization,isaccessedonlythroughtwostandardatomicoperations:

(wait())and(signal()).

46、Themaindisadvantageofthesemaphoredefinitiongivenhereisthatitrequires(busywaiting).

47、Dispatcherobjectsmaybeineitherasignaledstateoranonsignaledstate.A(signaledstate)indicatesthatanobjectisavailableandathreadwillnotblockwhenacquiringtheobject.

48、Sometimes,awaitingprocessisneveragainabletochangestate,becausetheresourcesithasrequestedareheldbyotherwaitingprocesses.Thissituationiscalleda(deadlock).

49、Asystemconsistsofafinitenumberofresourcestobedistributedamonganumberof(competingprocesses).Theresourcesarepartitionedintoseveraltypes,eachconsistingofsomenumberofidentical(instances).

50、Underthenormalmodeofoperation,aprocessmayutilizearesourceinonlythefollowingsequence:

(Request),use,(Release).

60、Multithreadedprogramsaregoodcandidatesfordeadlockbecausemultiplethreadscancompetefor(sharedresources).

61、Deadlockcanariseiffourconditionsholdsimultaneously:

Mutualexclusion

(Holdandwait),Nopreemption,(Circularwait).

62、Deadlockscanbedescribedmorepreciselyintermsofadirectedgraphcalleda(systemresourceallocation)graph.ThisgraphconsistsofasetofverticesVandasetofedgesE.

63、Themainpurposeofacomputersystemistoexecuteprograms.Theseprograms,togetherwiththedatatheyaccess,mustbein(mainmemory)(atleastpartially)duringexecution.

64、Mainmemoryand(registers)areonlystorageCPUcanaccessdirectly.

65、Thebaseregisterholdsthesmallestlegal(physicalmemoryaddress);

thelimitregisterspecifiesthesizeoftherange.

66、Addressbindingofinstructionsanddatatomemoryaddressescanhappenatthreedifferentstages:

(Compiletime),Loadtime,(Executiontime).

67、Logicalandphysicaladdressesarethesameincompile-timeand(load-time)address-bindingschemes;

logicalandphysicaladdressesdifferin(execution-time)address-bindingscheme.

68、InMMUscheme,thevalueintherelocationregisterisaddedtoeveryaddressgeneratedbyauserprocessatthetimeit

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 解决方案 > 商业计划

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2