版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
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(提供方便用戶使用的服務(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、靜夜四無無鄰,荒居居舊業(yè)貧。。。1月-231月-23Thursday,January5,202310、雨雨中中黃黃葉葉樹樹,,燈燈下下白白頭頭人人。。。。02:42:4502:42:4502:421/5/20232:42:45AM11、以以我我獨(dú)獨(dú)沈沈久久,,愧愧君君相相見見頻頻。。。。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、行動(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、沒有有失敗敗,只只有暫暫時(shí)停停止成成功??!。1月-231月-23Thursday,January5,202310、很多事情情努力了未未必有結(jié)果果,但是不不努力卻什什么改變也也沒有。。。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ì)圓滿,留一一份不足,可可得無限完美美。。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、楚楚塞塞三三湘湘接接,,荊荊門門九九派派通通。。。。。一月月232:42上上午午1月月-2302:42January5,202316、少少年年十十五五二二十十時(shí)時(shí),,步步行行奪奪得得胡胡馬馬騎騎。。。。2023/1/52:42:4502:42:4505January202317、空山山新雨雨后,,天氣氣晚來來秋。。。2:42:46上上午2:42上上午午02:42:461月-239、楊柳散和風(fēng)風(fēng),青山澹吾吾慮。。1月-231月-23Thursday,January5,20
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 專業(yè)廚房設(shè)備購銷協(xié)議2024版B版
- 2024版河南省事業(yè)編制人員勞動(dòng)協(xié)議樣式版B版
- 二零二五年度大巴車租賃與城市慶典活動(dòng)策劃合同3篇
- 二零二五年度酒吧股份投資及風(fēng)險(xiǎn)控制合同3篇
- 二零二五年度科技園區(qū)場地租賃詳細(xì)協(xié)議2篇
- 2024版短期勞務(wù)合同范例
- 濰坊護(hù)理職業(yè)學(xué)院《材料分析測試與表征》2023-2024學(xué)年第一學(xué)期期末試卷
- 太原學(xué)院《橋梁工程(一)》2023-2024學(xué)年第一學(xué)期期末試卷
- 2024年食堂管理員與廚師合同3篇
- 二零二五年建筑工程施工企業(yè)工程結(jié)算與審計(jì)合同2篇
- 上海某建筑基礎(chǔ)及上部結(jié)構(gòu)加固工程施工方案磚木結(jié)構(gòu) 磚混結(jié)構(gòu)
- 精神病醫(yī)院財(cái)務(wù)后勤總務(wù)管理制度
- 停車場施工施工組織設(shè)計(jì)方案
- GB/T 37238-2018篡改(污損)文件鑒定技術(shù)規(guī)范
- 普通高中地理課程標(biāo)準(zhǔn)簡介(湘教版)
- 河道治理工程監(jiān)理通知單、回復(fù)單范本
- 超分子化學(xué)簡介課件
- 高二下學(xué)期英語閱讀提升練習(xí)(一)
- 易制爆化學(xué)品合法用途說明
- 【PPT】壓力性損傷預(yù)防敷料選擇和剪裁技巧
- 大氣喜慶迎新元旦晚會(huì)PPT背景
評(píng)論
0/150
提交評(píng)論