




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
ComputerOperatingSystemsFANGDingyi(房鼎益)DepartmentofNetworking&CommunicationEng.TEL:88308273(lab);88308114(O)Email:dyf@WordsbeforetheCourse:Textbook:OperatingSystems—InternalsandDesignPrinciples
(3irdor4thedition),WilliamStalling,PrenticeHall/清华大学出版社;魏迎梅等译,电子工业出版社出版WordsbeforetheCourse:Grade:30%(10%presentation+10%homewwork+10%project)+
30%(midtermexam)+40%(finalexam)Claimoftheexam:allquestionareinEnglishWordsbeforetheCourse:Referenceboobs(inChinese):1.《计算机操作系统》,骆斌等著,高等教育出版社;2.《计算机操作系统》,孙雅如、房鼎益著,西电出版社;
3.《计算机操作系统》,汤子赢等著,西电出版社;4.《计算机操作系统》,何炎祥等著,清华大学出版社;ComputerSystemOverviewChapter1OperatingSystemExploitsthehardwareresourcesofoneormoreprocessors(充分利用处理机资源)Providesasetofservicestosystemusers(提供方便用户使用的服务)ManagessecondarymemoryandI/Odevices(管理外存与外设)BasicElementsProcessorMainMemoryreferredtoasrealmemoryorprimarymemoryVolatile(易挥发的—掉电后内容丢失)I/OmodulessecondarymemorydevicescommunicationsequipmentterminalsSystembuscommunicationamongprocessors,memory,andI/OmodulesTop-LevelComponentsProcessorRegistersUser-visibleregistersEnableprogrammertominimizemain-memoryreferencesbyoptimizingregisteruseControlandstatusregistersUsedbyprocessortocontroloperatingoftheprocessorUsedbyoperating-systemroutinestocontroltheexecutionofprogramsUser-VisibleRegistersMaybereferencedbymachinelanguageAvailabletoallprograms-applicationprogramsandsystemprogramsTypesofregistersDataAddressIndexSegmentpointerStackpointerUser-VisibleRegistersAddressRegistersIndexinvolvesaddinganindextoabasevaluetogetanaddressSegmentpointerwhenmemoryisdividedintosegments,memoryisreferencedbyasegmentandanoffsetStackpointerpointstotopofstackControlandStatusRegistersProgramCounter(PC)ContainstheaddressofaninstructiontobefetchedInstructionRegister(IR)ContainstheinstructionmostrecentlyfetchedProgramStatusWord(PSW)conditioncodesInterruptenable/disableSupervisor/usermodeControlandStatusRegistersConditionCodesorFlagsBitssetbytheprocessorhardwareasaresultofoperationsCanbe
accessedbyaprogrambutnotalteredExamplespositiveresultnegativeresultzeroOverflowInstructionExecutionTwostepsProcessorreadsinstructionsfrommemoryFetchesProcessorexecuteseachinstructionInstructionCycleInstructionFetchandExecuteTheprocessorfetchestheinstructionfrommemoryProgramcounter(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-handlerNoneedlesswaitingConsumesalotofprocessortimebecauseeverywordreadorwrittenpassesthroughtheprocessorDirectMemoryAccessTransfersablockofdatadirectlytoorfrommemoryAninterruptissentwhenthetransferiscompleteProcessorcontinueswithotherwork市场营销基础材料单击此处添加副标题内容讲座笔记2020/01/01艺术艺术80%20%50%营销的科学观与艺术观科学科学发达国家现状0180%中国现状02科学中国未来0320%单击此处输入你的正文,文字是您思想的提炼04艺术单击此处输入你的正文,文字是您思想的提炼0550%单击此处输入你的正文,文字是您思想的提炼06从共性需求到个性需求的演变消费者需求的满足过程添加标题单击此处输入你的正文,文字是您思想的提炼,请尽量言简意赅的阐述观点;01添加标题单击此处输入你的正文,文字是您思想的提炼,请尽量言简意赅的阐述观点;02目标市场的细分工业品行业/领域、用途/目的、使用者/操作者、地区/领域消费品年龄/性别、收入/价格、职业/学历、地域/城市市场形势与竞争状况横向透明度(消费者的判别能力)纵向透明度(生产者的判别能力)无序过度竞争适度和平竞争适度垄断竞争小公司大公司竞争状况的演变厂家数目厂家实力强弱少多初级竞争垄断竞争完全竞争无序竞争1234BAC商场上的生物链供应商生产商分销商最终用户供应商的供应商供应商的上游产品上游企业上游产品基础设施配套产品下游产品通讯广播电视交通消耗品饮料服务下游企业代理商专卖店竞争优势的维持和演变可变因素不可变因素优势劣势竞争的战术进攻战老二、老三找出对手长处和弱点集中优势兵力各个击破防守战自己打自己(新旧更替)睁着眼睛睡觉迂回进攻动作要快游击战找到看不上的市场空间夹着尾巴做人市场营销的经典理论创造价值(产品Product)交付价值(渠道Place)体现价值(定价Price)宣传价值(宣传Promotion)用户分析-消费者的现状与细分自我实现最终需要社会需要安全需要生理需要“整个产品”的启示就餐环境儿童玩具生日会洗手间饮料(4-6度)
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 内科深静脉血栓
- 2025年中国沐浴刷和网状海绵行业市场全景分析及前景机遇研判报告
- 培训机构年度自查报告
- 家庭教育教师培训
- 平面测量培训课件
- 中班健康领域《我的五官》公开课教案
- 妊娠糖尿护理诊断与术后管理
- 中班安全教育课件
- 胆道镜检查的护理
- 特色餐饮门面房租赁协议(包含经营指导及品牌支持)
- (正式版)HGT 4339-2024 机械设备用涂料
- 四年级数学(四则混合运算)计算题专项练习与答案汇编
- 《家政学概论》课件-第一章-现代家政概述
- GB/T 144-2024原木检验
- 宁德时代入职测评试题答案
- SLT278-2020水利水电工程水文计算规范
- 文学作品评分表
- 企业战略管理(陈志军第3版)课件全套 第1-10章 导论、使命目标与社会责任 - 战略变革
- 轨道工程施工技术及施工管理(附图)
- 高素质农民培育培训
- 创意美术《5-8岁线描联想《拇指家族的表情大PK》》课件
评论
0/150
提交评论