版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領
文檔簡介
ComputerOperatingSystemsFANGDingyi(房鼎益)DepartmentofNetworking&CommunicationEng.TEL:88308273(lab);88308114(O)Email:dyf@WordsbeforetheCourse:Textbook:OperatingSystems—InternalsandDesignPrinciples
(3irdor4thedition),WilliamStalling,PrenticeHall/清華大學出版社;魏迎梅等譯,電子工業(yè)出版社出版WordsbeforetheCourse:Grade:30%(10%presentation+10%homewwork+10%project)+
30%(midtermexam)+40%(finalexam)Claimoftheexam:allquestionareinEnglishWordsbeforetheCourse:Referenceboobs(inChinese):1.《計算機操作系統(tǒng)》,駱斌等著,高等教育出版社;2.《計算機操作系統(tǒng)》,孫雅如、房鼎益著,西電出版社;
3.《計算機操作系統(tǒng)》,湯子贏等著,西電出版社;4.《計算機操作系統(tǒng)》,何炎祥等著,清華大學出版社;ComputerSystemOverviewChapter1OperatingSystemExploitsthehardwareresourcesofoneormoreprocessors(充分利用處理機資源)Providesasetofservicestosystemusers(提供方便用戶使用的服務)ManagessecondarymemoryandI/Odevices(管理外存與外設)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、靜夜四無無鄰,荒居居舊業(yè)貧。。。1月-231月-23Thursday,January5,202310、雨雨中中黃黃葉葉樹樹,,燈燈下下白白頭頭人人。。。。02:42:4502:42:4502:421/5/20232:42:45AM11、以以我我獨獨沈沈久久,,愧愧君君相相見見頻頻。。。。1月月-2302:42:4502:42Jan-2305-Jan-2312、故故人人江江海海別別,,幾幾度度隔隔山山川川。。。。02:42:4502:42:4502:42Thursday,January5,202313、乍見翻疑疑夢,相悲悲各問年。。。1月-231月-2302:42:4502:42:45January5,202314、他他鄉(xiāng)鄉(xiāng)生生白白發(fā)發(fā),,舊舊國國見見青青山山。。。。05一一月月20232:42:45上上午午02:42:451月月-2315、比不了了得就不不比,得得不到的的就不要要。。。一月232:42上午午1月-2302:42January5,202316、行動出成成果,工作作出財富。。。2023/1/52:42:4502:42:4505January202317、做做前前,,能能夠夠環(huán)環(huán)視視四四周周;;做做時時,,你你只只能能或或者者最最好好沿沿著著以以腳腳為為起起點點的的射射線線向向前前。。。。2:42:45上上午午2:42上上午午02:42:451月月-239、沒有有失敗敗,只只有暫暫時停停止成成功??!。1月-231月-23Thursday,January5,202310、很多事情情努力了未未必有結(jié)果果,但是不不努力卻什什么改變也也沒有。。。02:42:4502:42:4502:421/5/20232:42:45AM11、成成功功就就是是日日復復一一日日那那一一點點點點小小小小努努力力的的積積累累。。。。1月月-2302:42:4502:42Jan-2305-Jan-2312、世間成事,,不求其絕對對圓滿,留一一份不足,可可得無限完美美。。02:42:4502:42:4502:42Thursday,January5,202313、不知香積積寺,數(shù)里里入云峰。。。1月-231月-2302:42:4502:42:45January5,202314、意志堅堅強的人人能把世世界放在在手中像像泥塊一一樣任意意揉捏。。05一一月20232:42:45上午午02:42:451月-2315、楚楚塞塞三三湘湘接接,,荊荊門門九九派派通通。。。。。一月月232:42上上午午1月月-2302:42January5,202316、少少年年十十五五二二十十時時,,步步行行奪奪得得胡胡馬馬騎騎。。。。2023/1/52:42:4502:42:4505January202317、空山山新雨雨后,,天氣氣晚來來秋。。。2:42:46上上午2:42上上午午02:42:461月-239、楊柳散和風風,青山澹吾吾慮。。1月-231月-23Thursday,January5,20
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024-2025學年新教材高中語文 第三單元 8.2 登高教學實錄(2)部編版必修上冊
- 創(chuàng)意婚禮策劃方案集合15篇
- 三年級語文上冊 第八單元 口語交際 請教教學實錄 新人教版
- 一年級寒假計劃表
- 騰訊的業(yè)務流程
- 深圳金運達倉庫及衛(wèi)星倉報關單證要求-開源國際物流
- 九年級道德與法治上冊 第二單元 民主與法治 第三課 追求民主價值 第1框 生活在民主國家教學實錄 新人教版
- 各級安全檢查表法
- 學生實習報告模板集錦10篇
- 大數(shù)據(jù)平臺項目軟件開發(fā)合同無價錢
- 2024年山東省政府采購專家入庫考試真題(共五套 第一套)
- 2024年全國《考評員》專業(yè)技能鑒定考試題庫與答案
- 實驗室安全準入學習通超星期末考試答案章節(jié)答案2024年
- 工業(yè)互聯(lián)網(wǎng)標準體系(版本3.0)
- 護士年終總結(jié)個人個人
- 切爾諾貝利核電站事故工程倫理分析
- 國開電大-工程數(shù)學(本)-工程數(shù)學第4次作業(yè)-形考答案
- GB/T 13384-2008機電產(chǎn)品包裝通用技術(shù)條件
- 材料表面與界面考試必備
- 煤礦礦井通風課程設計報告書
- 《結(jié)構(gòu)化學》(1-5章)習題
評論
0/150
提交評論