![操作系统原理英文版课件:Chapter 1 Introduction_第1页](http://file4.renrendoc.com/view/f2bbd46d69b9465053c12599cc104fbd/f2bbd46d69b9465053c12599cc104fbd1.gif)
![操作系统原理英文版课件:Chapter 1 Introduction_第2页](http://file4.renrendoc.com/view/f2bbd46d69b9465053c12599cc104fbd/f2bbd46d69b9465053c12599cc104fbd2.gif)
![操作系统原理英文版课件:Chapter 1 Introduction_第3页](http://file4.renrendoc.com/view/f2bbd46d69b9465053c12599cc104fbd/f2bbd46d69b9465053c12599cc104fbd3.gif)
![操作系统原理英文版课件:Chapter 1 Introduction_第4页](http://file4.renrendoc.com/view/f2bbd46d69b9465053c12599cc104fbd/f2bbd46d69b9465053c12599cc104fbd4.gif)
![操作系统原理英文版课件:Chapter 1 Introduction_第5页](http://file4.renrendoc.com/view/f2bbd46d69b9465053c12599cc104fbd/f2bbd46d69b9465053c12599cc104fbd5.gif)
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
OperatingSystemConcepts操作系统原理OperatingSystemConcepts课程概况(1/4)教学内容教学要求Introduction掌握操作系统的一般情况,了解本课程的学习方法OperatingsystemStructures介绍操作系统的组成使学生树立操作系统的整体概念ProcessManagement操作系统的最重要的部分,要求学生牢固掌握进程概念,能够借助进程概念编写并发程序Threads要求学生掌握创建和管理线程的方法熟练使用多线程技术编程CPUScheduling要求学生理解并能编写一个进程调度的程序ProcessSynchronization要求学生理解同步概念,掌握同步的编程方法Deadlocks要求学生理解死锁现象,了解预防、避免、检测、解除死锁的方法OperatingSystemConcepts课程概况(2/4)教学内容教学要求MemoryManagement掌握固定分区,可变分区,段式,页式存储管理原理与算法VirtualMemory虚拟存储是操作系统另一个重要概念。要求学生正确的理解虚存的概念熟练掌握请求页式的地址变换过程以及常用的页面置换算法FileSystems掌握文件系统的基本概念,熟练使用文件系统的操作方法I/OSystems掌握I/O系统的基本概念,理解设备驱动程序。弄清从用户请求到设备完成用户请求的全过程Mass-StorageStructure了解几种磁盘调度算法OperatingSystemConcepts课程概况(3/4)学时:64学时教材操作系统概念(第七版影印版)西尔伯莎茨编著高教社2007OperatingSystemConcepts课程概况(4/4)考核方式闭卷考试成绩评定:由下述三部分组成期末考试成绩期中考试成绩平时成绩(作业、出勤等)OfficeHours:Monday:14:00~17:00(E-maildiscussionsarewelcome)Chapter1IntroductionWhatOperatingSystemsDoComputer-SystemOrganizationComputer-SystemArchitectureOperating-SystemStructureOperating-SystemOperationsProcessManagementMemoryManagementStorageManagementProtectionandSecurityDistributedSystemsSpecial-PurposeSystemsComputingEnvironmentsOperatingSystemConceptsChapter1:Introduction(6thEd.)WhatisanOperatingSystem?MainframeSystemsDesktopSystemsMultiprocessorSystemsDistributedSystemsClusteredSystemReal-TimeSystemsHandheldSystemsComputingEnvironmentsOperatingSystemConceptsChapter2:Computer-SystemStructures(6thEd.)ComputerSystemOperationI/OStructureStorageStructureStorageHierarchyHardwareProtectionNetworkStructureOperatingSystemConceptsTwoShortStoriesaboutOSStoryOne
OperatingSystemConcepts1988,
进入赫尔辛基大学计算机系1989,进入芬兰陆军,服11个月的兵役,主要服务于计算机部门1990,退伍後回到大学,开始接触Unix。根据安德鲁·斯图尔特·塔能鲍姆所著的教科书及minix源码,打造了自己的操作系统1991,在网络上发布Linux内核OperatingSystemConceptsLinusTorvalds
StoryOne
SelectedQuotesfromLinusTorvaldsOperatingSystemConcepts"MynameisLinusTorvaldsandIamyourgod."——在1998Linux大会上的自我介绍StoryOne
SelectedQuotesfromLinusTorvaldsOperatingSystemConcepts"那年夏天我做了两件事。第一件事是什么都没做。第二件事是读完了719页的《操作系统:设计和执行》。那本红色的简装本教科书差不多等于睡在了我的床上。"——关于暑假StoryOne
OperatingSystemConcepts"Linux不是靠牺牲宝贵的睡眠时间换来的。事实上,如果你想听真话,那我就要说,我更喜欢睡觉。"——关于超时工作SelectedQuotesfromLinusTorvaldsStoryOne
OperatingSystemConcepts"寻找乐趣,做一些有趣的事情,增加财富和提高名声。"——关于生活哲学SelectedQuotesfromLinusTorvaldsStoryOne
OperatingSystemConceptsStoryTwo
AMS在奋进号舱内2011年5月19日5:15安装完毕,9:35开始接收数据77AMSPayloadandOperationControlCenterGeneva,SwitzerlandAMSDataFlow约翰逊航天中心(北航)SEUSupercomputingCenterInfiniband
cablesOperatingSystemConceptsFCcablesOperatingSystemConceptsOperatingSystemConceptsComputerSystemComponents1. Hardware–providesbasiccomputingresources(CPU,memory,I/Odevices).2. Operatingsystem–controlsandcoordinatestheuseofthehardwareamongthevariousapplicationprogramsforthevarioususers.3. Applicationsprograms–(compilers,databasesystems,videogames,businessprograms)areusedtosolveuserproblems.4. Users(people,machines,othercomputers).OperatingSystemConceptsAbstractViewofSystemComponentsOperatingSystemConceptsUserViewPCUsers:anoperatingsystemisaprogramthatprovidesaneasy-to-useinterfaceforusingthehardwareWorkstationUsers:anoperatingsystemisaprogramdesignedtocompromisebetweenindividualusabilityandresourceutilizationExperienceasaremoteuser?OperatingSystemConceptsSystemView(1/2)AResourceallocator:theoperatingsystemallocatesandreclaimsthesystemhardwareresourcestoandfromuserprogramsAControlProgram:theoperatingsystemcontrolstheexecutionofuserprogramstopreventerrorsandimproperuseofthecomputerOperatingSystemConceptsSystemView(2/2)Thereisno
universaldefinitionofwhatisanoperatingsystem.Acommondefinitionisthattheoperatingsystemistheoneprogramrunningatalltimesonthecomputer(i.e.,thekernel).AllotherprogramsareapplicationprogramsOperatingSystemConceptsTheGoalsofanOperatingSystemPrimaryGoal:efficient
operationofthecomputersystem.
Insomesystems,itisconvenience.
Inthepast,efficiencyisfarmoreimportantthanconvenience.OperatingSystemConceptsWhatisanOperatingSystem?Aprogramthatactsasanintermediarybetweentheapplicationprogramsandthecomputerhardware.Executeuserprogramsandmakesolvinguserproblemseasier.Makethecomputersystemconvenienttouse.Usethecomputerhardwareinanefficientmanner.Fromthecomputer’spointofview:Aresourceallocator,acontrolprogram,akernelOperatingSystemConceptsDesktopSystems(1/2)Personalcomputers–computersystemdedicatedtoasingleuser.I/Odevices–keyboards,mouse,displayscreens,smallprinters.Userconvenienceandresponsiveness.OperatingSystemConceptsDesktopSystems(2/2)CanadopttechnologydevelopedforlargeroperatingsystemindividualshavesoleuseofcomputeranddonotneedadvancedCPUutilizationofprotectionfeatures.Mayrunseveraldifferenttypesofoperatingsystems(Windows,MacOS,UNIX,Linux)OperatingSystemConceptsParallelSystemsMultiprocessorsystemswithmorethanoneCPUinclosecommunication.Tightlycoupledsystem–processorssharememoryandaclock;communicationusuallytakesplacethroughthesharedmemory.OperatingSystemConceptsParallelSystems(Cont.)Advantagesofparallelsystem:Increasedthroughput:GetsmorejobsdoneEconomyofscale:Becauseofresourcesharing,multiprocessorsystemsischeaperthanmultiplesingleprocessorsystems
Increasedreliability:thefailureofoneprocessorwillnothaltthewholesystemgracefuldegradationFault-tolerantsystemsOperatingSystemConceptsParallelSystems(Cont.)Symmetricmultiprocessing(SMP)Eachprocessorrunsanidenticalcopyoftheoperatingsystem.Manyprocessescanrunatoncewithoutperformancedeterioration.MustcarefullycontrolI/OtoensurethatthedatareachtheappropriateprocessorMayresultininefficienciesMostmodernoperatingsystemssupportSMPOperatingSystemConceptsSymmetricMultiprocessingArchitectureOperatingSystemConceptsParallelSystems(Cont.)AsymmetricmultiprocessingEachprocessorisassignedaspecifictask.Amasterprocessorcontrolsthesystem.Theotherprocessorseitherlooktothemasterforinstructionsorhavepredefinedtasks.Thus,thisdefinesamaster-slaverelationshipmasterprocessorschedulesandallocatedworktoslaveprocessors.MorecommoninextremelylargesystemsOperatingSystemConceptsDistributedSystemsDistributethecomputationamongseveralphysicalprocessors.Looselycoupledsystem–eachprocessorhasitsownlocalmemory;processorscommunicatewithoneanotherthroughvariouscommunicationslines,suchashigh-speedbusesortelephonelines.OperatingSystemConceptsDistributedSystems(cont)Adistributedsystemisacollectionofphysicallyseparate,possibleheterogeneouscomputersystemsthatarenetworked
toprovidetheuserswithaccesstothevariousresourcesthatthesystemmaintainsAdvantagesofdistributedsystems.ResourcesSharingComputationspeedup–loadsharingReliabilityCommunicationsOperatingSystemConceptsDistributedSystems(cont)Requiresnetworkinginfrastructure.Localareanetworks(LAN)orWideareanetworks(WAN)Maybeeitherclient-serverorpeer-to-peersystems.OperatingSystemConceptsGeneralStructureofClient-ServerOperatingSystemConceptsClusteredSystemsAclusteredsystemhastwoormoreindividualsystemssharedstorageandcloselylinkedviaLANnetworkingThekeyofclusteredsystemishighavailability.AsymmetricClustering:Onemachineisinhot-standbymodewhileothersarerunningapplications.Thehot-standbymachine(i.e.,doesnothingbut)monitorsothermachinesandbecomesactiveifoneserverfails.SymmetricClustering:Twoormorehostsarerunningapplicationsandmonitoreachother.ThisismoreefficientasitusesallavailablehardwareDemoLinuxBasiccommands:ls,mv,vi,cp,scp,hostname,ssh,xserver….gccClusterJobscheduler:LoadSharingFacility(LSF)BsubexampleFileSystem:GPFSOperatingSystemConceptsHomework1OperatingSystemConceptsReal-TimeSystemsOftenusedasacontroldeviceinadedicatedapplicationsuchascontrollingscientificexperiments,medicalimagingsystems,industrialcontrolsystems,andsomedisplaysystems.OperatingSystemConceptsReal-TimeSystems(Cont.)Areal-timeoperatingsystemhaswell-defined,fixedtimeconstraints.Processingmust
bedonewithinthedefinedconstraints,orthesystemwillfail.Real-Timesystemsmaybeeitherhard
orsoftreal-time.HardReal-TimeSystemsguaranteethatcriticaltasksbecompletedontime.SoftReal-TimeSystemsprioritizecriticaltasks.Thatis,acriticaltaskgetpriorityoverothertasks,andretainsthatpriorityuntilitcompletes.Embeddedsystemsalmostalwaysrunreal-timeoperatingsystemsOperatingSystemConceptsHandheldSystemsPersonalDigitalAssistants(PDAs)CellulartelephonesIssues:LimitedmemorySlowprocessorsSmalldisplayscreens.OperatingSystemConceptsMultiprogrammedBatchSystemsSeveraljobsarekeptinmainmemoryatthesametime,andtheCPUismultiplexedamongthem.KeepsservaljobsinmemorysimultaneouslyPicksandbeginstoexecuteoneIfthatjobneedstowait,CPUisswitchedtoanotheroneIt’sthefirstinstancewheretheoperatingsystemmustmakedecisionsfortheusersOperatingSystemConceptsOSFeaturesNeededforMultiprogrammingI/Oroutinesuppliedbythesystem.Memorymanagement–thesystemmustallocatethememorytoseveraljobs.CPUscheduling–thesystemmustchooseamongseveraljobsreadytorun.Allocationofdevices.Jobscheduling–thesystemmustchooseamongjobsreadytobebroughtintomemoryOperatingSystemConceptsAdvantagesanddisadvantagesofmultiprogramming:CPU利用率大大提高用户无控制权,无交互性,延迟大引入多道程序设计技术的根本目的:
提高CPU的利用率,充分发挥并行性,
这包括:程序之间;设备之间;设备与CPU之间均并行工作。OperatingSystemConcepts例:有两道程序A、B,按下图以多道程序方式运行,要求在右图画出它们的运行轨迹,并计算在60ms内,CPU的利用率,假设起始时首先运行B,并允许忽略监督程序切换A、B的时间。OperatingSystemConcepts运行15msI/O20ms运行10msI/O10msABBAI/OI/O10ms60mstBA请画个示意图。OperatingSystemConcepts解:BAI/OI/O1060t20304050253545若在单道程序系统中,CPU的利用率是多少?OperatingSystemConcepts为了说明多道程序的优点,不妨参考RTurner提出的例子:某计算机系统,有256KB的主存(不包含操作系统),一个磁盘,一个终端和一台打印机。同时提交的三个作业分别命名为JOB1、JOB2、JOB3。各作业运行时间分别为5min、15min和10min。它们对资源的使用情况如下表所示:OperatingSystemConcepts作业名作业类型所需主存/KB所需磁盘所需终端所需打印机运行时间/minJOB1CPU型50不用不用不用5JOB2I/O型100不用需要不用15JOB3I/O型80需要不用需要10三个作业的执行要求OperatingSystemConcepts假定JOB1主要使用CPU处理数据,JOB2主要使用终端进行作业的输入,JOB3运行时主要使用磁盘和打印机,后两作业都只需要较少的CPU时间。对于简单批处理情况,这些作业将按顺序执行。JOB1运行5min完成,JOB2在等待5min后,运行15min完成,JOB3在等待20min后开始执行。三个作业全部完成需要30min(这三个作业是一批)。OperatingSystemConcepts采用多道程序设计技术,可让这三个作业并行运行。由于它们运行中几乎不同时使用同一资源,所以三个作业可同时运行。JOB1在进行数据处理的同时,JOB2在终端上进行作业输入,JOB3在使用磁盘和打印机。因此,JOB1只需5min完成,JOB2需15min完成,JOB3需10min完成。这样三个作业全部完成的时间只需15min,显然系统处理效率明显提高。OperatingSystemConceptsTime-SharingSystems–InteractiveComputing(1/2)Interactivecomputersystemprovidesdirectcommunicationbetwe
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年度加油站租赁合同范本(含环保责任)
- 2025年二手车购买合同协议(三篇)
- 2025年度古董投资咨询与购销合同
- 2025年度专业剪辑师高级聘用合同
- 2025年度债权转让与资产重组实施合同
- 2025年度生态修复项目施工合同生态保护与恢复措施
- 2025年度人工智能研发贷款合同范本
- 2025年度企业高级管理人员劳动合同范本
- 2025年度智能交通信号系统安装与施工合同
- 2025年度园林景观设计绘图设计合同
- 《社会主义市场经济理论(第三版)》第八章社会主义市场经济调控论
- 交流伺服系统常见故障及处理分解课件
- 水土保持单元工程质量评定表
- 圣三国蜀汉传攻略
- 2021届高考英语887核心词(打印、词频、出处、例句、背诵)
- 天津市乡镇卫生院街道社区卫生服务中心地址医疗机构名单
- 公司机关管理类责任矩阵
- 山东省青岛市各县区乡镇行政村村庄村名居民村民委员会明细及行政区划代码
- 《钻井液用磺甲基酚醛树脂技术要求》
- 数学-九宫数独100题(附答案)
- 中国农业发展银行XX支行 关于综合评价自评情况的报告
评论
0/150
提交评论