




版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
ComputerOperatingSystemsFANGDingyi(房鼎益)DepartmentofNetworking&CommunicationEng.TEL:88308273(lab);88308114(O)Email:dyf@WordsbeforetheCourse:Textbook:OperatingSystems—InternalsandDesignPrinciples
(3irdor4thedition),WilliamStalling,PrenticeHall/清華大學(xué)出版社;魏迎梅等譯,電子工業(yè)出版社出版WordsbeforetheCourse:Grade:30%(10%presentation+10%homewwork+10%project)+
30%(midtermexam)+40%(finalexam)Claimoftheexam:allquestionareinEnglishWordsbeforetheCourse:Referenceboobs(inChinese):1.《計(jì)算機(jī)操作系統(tǒng)》,駱斌等著,高等教育出版社;2.《計(jì)算機(jī)操作系統(tǒng)》,孫雅如、房鼎益著,西電出版社;
3.《計(jì)算機(jī)操作系統(tǒng)》,湯子贏等著,西電出版社;4.《計(jì)算機(jī)操作系統(tǒng)》,何炎祥等著,清華大學(xué)出版社;ComputerSystemOverviewChapter1OperatingSystemExploitsthehardwareresourcesofoneormoreprocessors(充分利用處理機(jī)資源)Providesasetofservicestosystemusers(提供方便用戶(hù)使用的服務(wù))ManagessecondarymemoryandI/Odevices(管理外存與外設(shè))BasicElementsProcessorMainMemoryreferredtoasrealmemoryorprimarymemoryVolatile(易揮發(fā)的—掉電后內(nèi)容丟失)I/OmodulessecondarymemorydevicescommunicationsequipmentterminalsSystembuscommunicationamongprocessors,memory,andI/OmodulesTop-LevelComponentsProcessorRegistersUser-visibleregistersEnableprogrammertominimizemain-memoryreferencesbyoptimizingregisteruseControlandstatusregistersUsedbyprocessortocontroloperatingoftheprocessorUsedbyoperating-systemroutinestocontroltheexecutionofprogramsUser-VisibleRegistersMaybereferencedbymachinelanguageAvailabletoallprograms-applicationprogramsandsystemprogramsTypesofregistersDataAddressIndexSegmentpointerStackpointerUser-VisibleRegistersAddressRegistersIndexinvolvesaddinganindextoabasevaluetogetanaddressSegmentpointerwhenmemoryisdividedintosegments,memoryisreferencedbyasegmentandanoffsetStackpointerpointstotopofstackControlandStatusRegistersProgramCounter(PC)ContainstheaddressofaninstructiontobefetchedInstructionRegister(IR)ContainstheinstructionmostrecentlyfetchedProgramStatusWord(PSW)conditioncodesInterruptenable/disableSupervisor/usermodeControlandStatusRegistersConditionCodesorFlagsBitssetbytheprocessorhardwareasaresultofoperationsCanbeaccessedbyaprogrambutnotalteredExamplespositiveresultnegativeresultzeroOverflowInstructionExecutionTwostepsProcessorreadsinstructionsfrommemoryFetchesProcessorexecuteseachinstructionInstructionCycleInstructionFetchandExecuteTheprocessorfetchestheinstructionfrommemoryProgramcounter(PC)holdsaddressoftheinstructiontobefetchednextProgramcounterisincrementedaftereachfetchInstructionRegisterFetchedinstructionisplacedintheinstructionregisterTypesofinstructionsProcessor-memorytransferdatabetweenprocessorandmemoryProcessor-I/OdatatransferredtoorfromaperipheraldeviceDataprocessingarithmeticorlogicoperationondataControlaltersequenceofexecutionCharacteristicsofaHypotheticalMachineExampleofProgramExecutionDirectMemoryAccess(DMA)I/OexchangesoccurdirectlywithmemoryProcessorgrantsI/OmoduleauthoritytoreadfromorwritetomemoryRelievestheprocessorresponsibilityfortheexchangeProcessorisfreetodootherthingsInterruptsAninterruptionofthenormalsequenceofexecutionImprovesprocessingefficiencyAllowstheprocessortoexecuteotherinstructionswhileanI/OoperationisinprogressAsuspensionofaprocesscausedbyaneventexternaltothatprocessandperformedinsuchawaythattheprocesscanberesumedClassesofInterruptsProgramFlowofControlWithoutInterruptsProgramFlowofControlWithInterrupts,ShortI/OWaitProgramFlowofControlWithInterrupts;LongI/OWaitInterruptHandlerAprogramthatdeterminesnatureoftheinterruptandperformswhateveractionsareneededControlistransferredtothisprogramGenerallypartoftheoperatingsystemInterruptsSuspendsthenormalsequenceofexecutionInterruptCycleInterruptCycleProcessorchecksforinterruptsIfnointerruptsfetchthenextinstructionforthecurrentprogramIfaninterruptispending(待解決的),suspendexecutionofthecurrentprogram,andexecutetheinterrupt-handlerroutineTimingDiagramBasedonShortI/OWaitTimingDiagramBasedonShortI/OWaitSimpleInterruptProcessingChangesinMemoryandRegistersforanInterruptChangesinMemoryandRegistersforanInterruptMultipleInterruptsDisableinterruptswhileaninterruptisbeingprocessedMultipleInterruptsDefineprioritiesforinterruptsMultipleInterruptsMultiprogrammingProcessorhasmorethanoneprogramtoexecuteThesequencetheprogramsareexecuteddependontheirrelativepriorityandwhethertheyarewaitingforI/OAfteraninterrupthandlercompletes,controlmaynotreturntotheprogramthatwasexecutingatthetimeoftheinterruptMemoryHierarchyFasteraccesstime,greatercostperbitGreatercapacity,smallercostperbitGreatercapacity,sloweraccessspeedMemoryHierarchyGoingDowntheHierarchyDecreasingcostperbitIncreasingcapacityIncreasingaccesstimeDecreasingfrequencyofaccessofthememorybytheprocessorLocalityofreferenceSecondaryMemoryNonvolatileAuxiliarymemoryUsedtostoreprogramanddatafilesDiskCacheAportionofmainmemoryusedasabuffertotemporarilytoholddataforthediskDiskwritesareclusteredSomedatawrittenoutmaybereferencedagain.ThedataareretrievedrapidlyfromthesoftwarecacheinsteadofslowlyfromdiskCacheMemoryInvisibletooperatingsystemIncreasethespeedofmemoryProcessorspeedisfasterthanmemoryspeedExploittheprincipleoflocalityCacheMemoryCacheMemoryContainsacopyofaportionofmainmemoryProcessorfirstcheckscacheIfnotfoundincache,theblockofmemorycontainingtheneededinformationismovedtothecacheanddeliveredtotheprocessorCache/MainMemorySystemCacheReadOperationCacheDesignCachesizeSmallcacheshaveasignificantimpactonperformanceBlocksizeTheunitofdataexchangedbetweencacheandmainmemoryLargerblocksizemorehitsuntilprobabilityofusingnewlyfetcheddatabecomeslessthantheprobabilityofreusingdatathathavetobemovedoutofcacheCacheDesignMappingfunctionDetermineswhichcachelocationtheblockwilloccupyReplacementalgorithmDetermineswhichblocktoreplaceLeast-Recently-Used(LRU)algorithmCacheDesignWritepolicyWhenthememorywriteoperationtakesplaceCanoccureverytimeblockisupdatedCanoccuronlywhenblockisreplacedMinimizesmemorywriteoperationsLeavesmainmemoryinanobsoletestateProgrammedI/OI/Omoduleperformstheaction,nottheprocessorSetsappropriatebitsintheI/OstatusregisterNointerruptsoccurProcessorchecksstatusuntiloperationiscompleteInterrupt-DrivenI/OProcessorisinterruptedwhenI/OmodulereadytoexchangedataProcessorsavescontextofprogramexecutingandbeginsexecutinginterrupt-handlerNoneedlesswaitingConsumesalotofprocessortimebecauseeverywordreadorwrittenpassesthroughtheprocessorDirectMemoryAccessTransfersablockofdatadirectlytoorfrommemoryAninterruptissentwhenthetransferiscompleteProcessorcontinueswithotherwork9、靜夜四無(wú)無(wú)鄰,荒居居舊業(yè)貧。。。1月-231月-23Thursday,January5,202310、雨雨中中黃黃葉葉樹(shù)樹(shù),,燈燈下下白白頭頭人人。。。。02:42:4502:42:4502:421/5/20232:42:45AM11、以以我我獨(dú)獨(dú)沈沈久久,,愧愧君君相相見(jiàn)見(jiàn)頻頻。。。。1月月-2302:42:4502:42Jan-2305-Jan-2312、故故人人江江海海別別,,幾幾度度隔隔山山川川。。。。02:42:4502:42:4502:42Thursday,January5,202313、乍見(jiàn)翻疑疑夢(mèng),相悲悲各問(wèn)年。。。1月-231月-2302:42:4502:42:45January5,202314、他他鄉(xiāng)鄉(xiāng)生生白白發(fā)發(fā),,舊舊國(guó)國(guó)見(jiàn)見(jiàn)青青山山。。。。05一一月月20232:42:45上上午午02:42:451月月-2315、比不了了得就不不比,得得不到的的就不要要。。。一月232:42上午午1月-2302:42January5,202316、行動(dòng)出成成果,工作作出財(cái)富。。。2023/1/52:42:4502:42:4505January202317、做做前前,,能能夠夠環(huán)環(huán)視視四四周周;;做做時(shí)時(shí),,你你只只能能或或者者最最好好沿沿著著以以腳腳為為起起點(diǎn)點(diǎn)的的射射線線向向前前。。。。2:42:45上上午午2:42上上午午02:42:451月月-239、沒(méi)有有失敗敗,只只有暫暫時(shí)停停止成成功?。?。1月-231月-23Thursday,January5,202310、很多事情情努力了未未必有結(jié)果果,但是不不努力卻什什么改變也也沒(méi)有。。。02:42:4502:42:4502:421/5/20232:42:45AM11、成成功功就就是是日日復(fù)復(fù)一一日日那那一一點(diǎn)點(diǎn)點(diǎn)點(diǎn)小小小小努努力力的的積積累累。。。。1月月-2302:42:4502:42Jan-2305-Jan-2312、世間成事,,不求其絕對(duì)對(duì)圓滿(mǎn),留一一份不足,可可得無(wú)限完美美。。02:42:4502:42:4502:42Thursday,January5,202313、不知香積積寺,數(shù)里里入云峰。。。1月-231月-2302:42:4502:42:45January5,202314、意志堅(jiān)堅(jiān)強(qiáng)的人人能把世世界放在在手中像像泥塊一一樣任意意揉捏。。05一一月20232:42:45上午午02:42:451月-2315、楚楚塞塞三三湘湘接接,,荊荊門(mén)門(mén)九九派派通通。。。。。一月月232:42上上午午1月月-2302:42January5,202316、少少年年十十五五二二十十時(shí)時(shí),,步步行行奪奪得得胡胡馬馬騎騎。。。。2023/1/52:42:4502:42:4505January202317、空山山新雨雨后,,天氣氣晚來(lái)來(lái)秋。。。2:42:46上上午2:42上上午午02:42:461月-239、楊柳散和風(fēng)風(fēng),青山澹吾吾慮。。1月-231月-23Thursday,January5,20
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 哈爾濱電力職業(yè)技術(shù)學(xué)院《走向富足通過(guò)科技改變?nèi)祟?lèi)未來(lái)》2023-2024學(xué)年第二學(xué)期期末試卷
- 揚(yáng)州環(huán)境資源職業(yè)技術(shù)學(xué)院《大數(shù)據(jù)內(nèi)存計(jì)算》2023-2024學(xué)年第二學(xué)期期末試卷
- 青島城市學(xué)院《經(jīng)濟(jì)學(xué)通論》2023-2024學(xué)年第二學(xué)期期末試卷
- 長(zhǎng)春工程學(xué)院《近代儀器分析》2023-2024學(xué)年第二學(xué)期期末試卷
- 廣東郵電職業(yè)技術(shù)學(xué)院《價(jià)值觀教育專(zhuān)題研究》2023-2024學(xué)年第二學(xué)期期末試卷
- 遼寧機(jī)電職業(yè)技術(shù)學(xué)院《婦女社會(huì)工作》2023-2024學(xué)年第二學(xué)期期末試卷
- 湖南交通工程學(xué)院《大學(xué)生創(chuàng)新創(chuàng)業(yè)實(shí)踐》2023-2024學(xué)年第二學(xué)期期末試卷
- 泰州2025年江蘇泰州興化市部分高中學(xué)校校園招聘教師22人筆試歷年參考題庫(kù)附帶答案詳解
- 湖南中醫(yī)藥高等專(zhuān)科學(xué)?!吨袑W(xué)化學(xué)教學(xué)設(shè)計(jì)(含課程標(biāo)準(zhǔn)與教材研究)》2023-2024學(xué)年第二學(xué)期期末試卷
- 湘西民族職業(yè)技術(shù)學(xué)院《自動(dòng)機(jī)械設(shè)計(jì)》2023-2024學(xué)年第二學(xué)期期末試卷
- 會(huì)計(jì)人才培養(yǎng)方案調(diào)研報(bào)告書(shū)
- 大學(xué)生創(chuàng)新創(chuàng)業(yè)(微課版第3版)課件 第1、2章 了解創(chuàng)業(yè)規(guī)劃你的職業(yè)生涯、創(chuàng)新與創(chuàng)新思維
- E時(shí)代大學(xué)英語(yǔ)-讀寫(xiě)教程2 第四單元
- 四年級(jí)語(yǔ)文上冊(cè)第一單元單元整體教學(xué)設(shè)計(jì)
- 玩具安全標(biāo)準(zhǔn)測(cè)試培訓(xùn)-(SGS)課件
- 員工工資條模板
- 病例報(bào)告表格模板CRF
- 電動(dòng)托盤(pán)車(chē)(搬運(yùn)車(chē))培訓(xùn)-課件
- 綠色化學(xué)工藝-綠色技術(shù)教學(xué)課件
- 電梯安全年檢檢測(cè)規(guī)程
- 觀音靈簽1-100可打印
評(píng)論
0/150
提交評(píng)論