Operating Systems (操作系统原理).ppt

上传人:s****8 文档编号:67220228 上传时间:2022-12-24 格式:PPT 页数:27 大小:303.50KB
返回 下载 相关 举报
Operating Systems (操作系统原理).ppt_第1页
第1页 / 共27页
Operating Systems (操作系统原理).ppt_第2页
第2页 / 共27页
点击查看更多>>
资源描述

《Operating Systems (操作系统原理).ppt》由会员分享,可在线阅读,更多相关《Operating Systems (操作系统原理).ppt(27页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、Operating Systems(操作系统原理)n nText book:Text book:uuDinosaur book Dinosaur book(恐龙书)恐龙书)uu操作系统概念操作系统概念 (中译本中译本)n nTeacher:Teacher:uu郑扣根(郑扣根(ZhengZheng KougenKougen)uuProf.Dr.Mr.Prof.Dr.Mn nTATA“OS Homework”“OS Homework”Operating Systems(操作系统原理)n nRefs:Refs:uuKernighan and Pike,The UNIX Programming Ker

2、nighan and Pike,The UNIX Programming Environment,Prentice-Hall,1984.Environment,Prentice-Hall,1984.uuW.R.Stevens,Advanced Programming in the UNIX W.R.Stevens,Advanced Programming in the UNIX Environment,Prentice-Hall,1992Environment,Prentice-Hall,1992uuW.R.Stevens,UNIX Network Programming I,W.R.Stev

3、ens,UNIX Network Programming I,Prentice-Hall,1997.Prentice-Hall,1997.uuW.R.Stevens,UNIX Network Programming II,W.R.Stevens,UNIX Network Programming II,Prentice-Hall,1998.Prentice-Hall,1998.uuwww.kernel.orgwww.kernel.orgCHAPTER 1:INTRODUCTIONn nWhat is an Operating System?What is an Operating System?

4、n nMainframe SystemsMainframe Systemsn nDesktop SystemsDesktop Systemsn nMultiprocessor SystemsMultiprocessor Systemsn nDistributed Systems Distributed Systems n nClustered SystemClustered Systemn nReal-Time SystemsReal-Time Systemsn nHandheld SystemsHandheld Systemsn nFeature MigrationFeature Migra

5、tionn nComputing EnvironmentsComputing EnvironmentsWHAT IS AN OPERATING SYSTEM?An operating system(操作系统)n nmanages the computer resources,such as CPUs,Memories,Hard disks,and acts as an intermediary between the computer hardware and the computer user,n nprovides the system services to user programs,

6、n nprovides an environment for executing programs.What Is an Operating System?The components of a computer systemWhat Is an Operating System?The components of a computer systemn nHardware provides basic computing resources(CPU,Hardware provides basic computing resources(CPU,memory,I/O devices).memor

7、y,I/O devices).n nOperating system controls and coordinates the use of Operating system controls and coordinates the use of the hardware among the various application programs the hardware among the various application programs for the various users.for the various users.n nApplications programs def

8、ine the ways in which the Applications programs define the ways in which the system resources are used to solve the computing system resources are used to solve the computing problems of the users(compilers,database systems,problems of the users(compilers,database systems,video games,business progra

9、ms).video games,business programs).n nUsers(people,machines,other computers).Users(people,machines,other computers).What Is an Operating System?User viewn nPC usersPC users(PCPC用户):用户):The OS is designed to mostly The OS is designed to mostly for ease of use,with some attention paid to for ease of u

10、se,with some attention paid to performance,and none paid to resource utilization.performance,and none paid to resource utilization.n nMainframe or minicomputer users(Mainframe or minicomputer users(大型机和小型机用大型机和小型机用户户):The OS is designed to maximize resource The OS is designed to maximize resource ut

11、ilization.utilization.n nWorkstation usersWorkstation users(工作站用户):工作站用户):The OS is The OS is designed to compromise between resource utilization designed to compromise between resource utilization and individual usability.and individual usability.n nHandheld users Handheld users(手持设备用户):手持设备用户):Mos

12、tly for Mostly for individual usability,but performance per amount of individual usability,but performance per amount of batter life is important as well.batter life is important as well.What Is an Operating System?System viewn nAn operating system is a resource An operating system is a resource all

13、ocatorallocator (分配器)分配器)n nAn operating system is a control program that manages An operating system is a control program that manages the execution of user programs to prevent errors and the execution of user programs to prevent errors and improper use of the computer.improper use of the computer.

14、n nAn operating system is to execute user programs and to An operating system is to execute user programs and to make solving user problems easier.make solving user problems easier.n nWhat is part of the OSWhat is part of the OSuuAn OS is anything a vendor ships.An OS is anything a vendor ships.uuAn

15、 OS is the kernel An OS is the kernel(内核)内核)part and all else are part and all else are applications.applications.The matter of what constitutes an OS is becoming The matter of what constitutes an OS is becoming important(Microsoft case in 1998)important(Microsoft case in 1998)What Is an Operating S

16、ystem?System goalsnOS goalsuConvenience:Make the computer convenient to use.uEfficiency:Use the computer hardware in an efficient manner.nBuilding an OS is a complex taskuDesigning and implementationuRevising and updatinguHardware support.nTo find out What the OS is and what it does,let us trace the

17、 evolution(not revolution)of OS.MAINFRAME SYSTEMS(大型机系统)n nNo OS No OS(无操作系统)无操作系统)n nBatched OSBatched OS(批处理操作系统批处理操作系统)n nMultiprogrammedMultiprogrammed OS OS(多道程序操作系统)多道程序操作系统)n nTime-sharing OS Time-sharing OS(多时操作系统)多时操作系统)Mainframe Systems:No OSn nDesigner,Implementer,Operator,User Designer,I

18、mplementer,Operator,User n nDesigner,Implementer/Operator,User Designer,Implementer/Operator,User n nDrawbacks:Drawbacks:uuScheduling time Scheduling time uuSetup time Setup time uuslowslowMainframe Systems:Batch OSn nThe OS The OS uuwas always resident in memorywas always resident in memoryuuautoma

19、tically transferred control from one job to automatically transferred control from one job to another.another.n nBatching:Batching:uuProgrammers submitted jobs in a job control Programmers submitted jobs in a job control languages(shell,languages(shell,awkawk,perlperl)uuOperators batched together jo

20、bs with similar needs Operators batched together jobs with similar needs and ran them through the computer as a group.and ran them through the computer as a group.n nDrawbacks:Drawbacks:uufast CPU and slow I/O devices.fast CPU and slow I/O devices.Mainframe Systems:Multiprogrammed OSn nMultiprogramm

21、edMultiprogrammed OS(vs.OS(vs.uniprogrammeduniprogrammed OS)OS)uuKeeping many jobs in memory(see the next slide)Keeping many jobs in memory(see the next slide)uuSwitching to another job if the CPU is idleSwitching to another job if the CPU is idleuuAs long as at least one job needs to execute,the CP

22、U As long as at least one job needs to execute,the CPU is never idle.is never idle.n nMultiprogrammedMultiprogrammed OS OSuuJob scheduling for selecting a job to load into memoryJob scheduling for selecting a job to load into memoryuuCPU scheduling for selecting which job to runCPU scheduling for se

23、lecting which job to runuuMemory managementMemory managementuuProtection.Protection.n nDrawback:not interactiveDrawback:not interactiveMainframe Systems:Multiprogrammed OSMainframe Systems:Time-sharing OSn nMemory sharing Memory sharing multiprogrammingmultiprogrammingn nMemory sharing+time sharing

24、Memory sharing+time sharing multiprogramming+multiprogramming+interaction(or multi-tasking)interaction(or multi-tasking)n nThe CPU is The CPU is rapidlyrapidly multiplexed among several jobs that multiplexed among several jobs that are kept in memory.(I/O operation is terribly slow!)are kept in memo

25、ry.(I/O operation is terribly slow!)n nTime-sharing OSTime-sharing OSuuMemory management(virtual memory)and protectionMemory management(virtual memory)and protectionuuFile system,disk managementFile system,disk managementuuProcess synchronization(Process synchronization(同步同步)and communication)and co

26、mmunicationuuDeadlock handling Deadlock handling(死锁处理)死锁处理).DESKTOP SYSTEMSn nPersonal computers Personal computers uucomputer system dedicated to a single puter system dedicated to a single user.uuI/O devices keyboards,mice,display screens,small I/O devices keyboards,mice,display screens,small prin

27、ters.printers.uuIndividuals have sole use of computer and do not need Individuals have sole use of computer and do not need advanced CPU utilization of protection features.advanced CPU utilization of protection features.n nUser convenience and responsiveness not maximizing User convenience and respo

28、nsiveness not maximizing CPU and peripheral utilizationCPU and peripheral utilizationn nCan adopt some of the technology developed for larger Can adopt some of the technology developed for larger operating system.operating system.uuNot much of utilizationNot much of utilizationuuProtection,and so on

29、Protection,and so onn nMany possible Many possible OSesOSes:(Windows,:(Windows,MacOSMacOS,UNIX,Linux),UNIX,Linux)PARALLEL AND DISTRIBUTED SYSTEMSn nTwo typesTwo typesuuTightly coupled systems Tightly coupled systems(紧耦合系统紧耦合系统)t tParallel systems or multiprocessor systemsParallel systems or multipro

30、cessor systemst tProcessors share memory and a clock;Processors share memory and a clock;communication usually takes place through the communication usually takes place through the shared memory.shared memory.uuLoosed coupled systemsLoosed coupled systems(松耦合系统松耦合系统)t tDistributed systems and cluste

31、red systemsDistributed systems and clustered systemst tEach processor has its own local memory;Each processor has its own local memory;processors communicate with one another processors communicate with one another through various communications lines,such as through various communications lines,suc

32、h as high-speed buses or telephone lines.high-speed buses or telephone lines.Parallel and distributed systems:Parallel systemsn nAdvantages of parallel systems:Advantages of parallel systems:uuIncreased Increased throughputthroughputuuEconomy of scaleEconomy of scale uuIncreased reliabilityIncreased

33、 reliabilityt tgraceful degradation(The ability to continue graceful degradation(The ability to continue providing service proportional to the level of providing service proportional to the level of surviving hardware).fail-soft systems(systems surviving hardware).fail-soft systems(systems designed

34、for graceful designed for graceful degrationdegration)n nAsymmetric multiprocessing Asymmetric multiprocessing(非对称处理)非对称处理)uuMaster processor schedules and allocated work to Master processor schedules and allocated work to slave processors.slave processors.uuEach processor is assigned a specific tas

35、k;Each processor is assigned a specific task;uuMore common in extremely large systemsMore common in extremely large systemsParallel and distributed systems:Parallel systemsn nSymmetric multiprocessing(SMP)Symmetric multiprocessing(SMP)(对称处理)对称处理)uuEach processor runs an identical copy of the Each pr

36、ocessor runs an identical copy of the operating system.operating system.uuMany processes can run at once without Many processes can run at once without performance deterioration.performance deterioration.uuMost modern operating systems support SMPMost modern operating systems support SMPn nSMP and A

37、SMP may be the result of either hardware SMP and ASMP may be the result of either hardware and softwareand softwareParallel and distributed systems:Distributed systemsn nAdvantages of distributed systems.Advantages of distributed systems.uuResources Sharing Resources Sharing uuComputation speed up l

38、oad sharing Computation speed up load sharing uuReliabilityReliabilityuuCommunicationsCommunicationsn nRequires networking infrastructure.Requires networking infrastructure.n nLocal area networks(LAN)or Wide area networks Local area networks(LAN)or Wide area networks(WAN)(WAN)n nMay be either client

39、-server or peer-to-peer systems.May be either client-server or peer-to-peer systems.Parallel and distributed systems:Distributed systemsParallel and distributed systems:Clustered systems(集群系统)n nClustering allows two or more systems to share storage.Clustering allows two or more systems to share sto

40、rage.n nProvides high reliability.Provides high reliability.n nAsymmetric clusteringAsymmetric clustering:one server runs the application:one server runs the application while other servers standby.while other servers standby.n nSymmetric clusteringSymmetric clustering:all:all N N hosts are running

41、the hosts are running the application.application.REAL-TIME SYSTEMSn nOften used as a control device in a dedicated Often used as a control device in a dedicated application such as controlling scientific experiments,application such as controlling scientific experiments,medical imaging systems,indu

42、strial control systems,medical imaging systems,industrial control systems,and some display systems.and some display systems.n nWell-defined fixed-time constraints.Well-defined fixed-time constraints.n nReal-Time systems may be either Real-Time systems may be either hard hard or or softsoft real-time

43、.real-time.Real-Time SystemsHard real-time:Hard real-time:uuSecondary storage limited or absent,data stored in Secondary storage limited or absent,data stored in short term memory,or read-only memory(ROM)short term memory,or read-only memory(ROM)uuConflicts with time-sharing systems,not supported Co

44、nflicts with time-sharing systems,not supported by general-purpose operating systems.by general-purpose operating systems.n nSoft real-timeSoft real-timeuuLimited utility in industrial control of roboticsLimited utility in industrial control of roboticsuuUseful in applications(multimedia,virtual rea

45、lity)Useful in applications(multimedia,virtual reality)requiring advanced operating-system features.requiring advanced operating-system features.HANDHELD SYSTEMSn nPersonal Digital Assistants(Personal Digital Assistants(PDAsPDAs)()(个人数字助理个人数字助理)n nCellular telephonesCellular telephones(手机手机),Pocket PC,),Pocket PC,n nIssues:Issues:uuLimited memoryLimited memoryuuSlow processorsSlow processorsuuSmall display screens.Small display screens.OS FEATURE MIGRATIONCOMPUTING ENVIRONMENTSn nTraditional computingn nWeb-Based Computingn nEmbedded Computing

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 生活常识

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁