




已阅读5页,还剩17页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Applied Operating System Concepts,1: Introduction 引论,What is an operating system?什么是操作系统? Simple Batch Systems简单批处理系统 Multiprogramming Batched Systems多道程序批处理系统 Time-Sharing Systems分时系统 Personal-Computer Systems 个人计算机系统 Parallel Systems并行系统 Distributed Systems分布式系统 Real -Time Systems实时系统,Applied Operating System Concepts,What is an Operating System?什么是操作系统?,A program that acts as an intermediary between a user of a computer and the computer hardware. 在计算机用户和计算机硬件之间起媒介作用的一种程序。 Operating system goals: 操作系统目标 Execute user programs and make solving user problems easier. 执行用户程序并使用户问题更易解决。 Make the computer system convenient to use. 使计算机系统更易使用。 Use the computer hardware in an efficient manner. 以一种效率的方式使用硬件。,Applied Operating System Concepts,Computer System Components计算机系统部件,1. Hardware硬件 provides basic computing resources (CPU, memory, I/O devices).提供基本的运算资源 2. Operating system操作系统 controls and coordinates the use of the hardware among the various application programs for the various users.在各种应用程序和用户之间控制与协调对硬件的使用 3. Applications programs 应用程序 define the ways in which the system resources are used to solve the computing problems of the users (compilers, database systems, video games, business programs).定义解决用户问题的资源使用方式(编译、数据库、视频游戏、事务程序等) 4. Users (people, machines, other computers)用户(人、机、其他计算机).,Applied Operating System Concepts,Abstract View of System Components 系统部件的抽象观点,Applied Operating System Concepts,Operating System Definitions操作系统定义,Resource allocator资源分配者 manages and allocates resources.管理和分配资源 Control program控制程序 controls the execution of user programs and operations of I/O devices .控制用户程序的运行和I/O设备的操作 Kernel 内核 the one program running at all times (all else being application programs).在全时运行的一个程序(其他的是应用),Applied Operating System Concepts,Simple Batch Systems简单批处理系统,Hire an operator雇一个操作员 User operator用户操作员 Add a card reader添加卡片阅读机 Reduce setup time by batching similar jobs批量处理同类作业减少了设置时间 Automatic job sequencing 自动作业调度 automatically transfers control from one job to another. First rudimentary operating system.自动把控制从一个作业转到另一个作业。第一个基本操作系统。 Resident monitor常驻管理程序 initial control in monitor 初始化管理程序 control transfers to job 转换控制到作业 when job completes control transfers back to monitor作业完成后转换控制回管理程序,Applied Operating System Concepts,Memory Layout for a Simple Batch System简单批处理系统的存储器布局,Applied Operating System Concepts,Control Cards作业控制卡,Problems问题 1. How does the monitor know about the nature of the job (e.g., Fortran versus Assembly) or which program to execute? 管理程序如何知道作业的性质(如, Fortran还是汇编)或哪个程序要运行? 2. How does the monitor distinguish管理程序如何区别 (a) job from job?一个个的作业? (b) data from program?数据还是程序? Solution解法 Introduce control cards引入作业控制卡,Applied Operating System Concepts,Control Cards作业控制卡(Cont.),Special cards that tell the resident monitor which programs to run特殊卡片通知管理程序哪个程序运行 $JOB $FTN $RUN $DATA $END Special characters distinguish control cards from data or program cards特定的字符把数据卡片和程序卡片区分开来: $ in column 1 / in column 1 and 2 709 in column1,Applied Operating System Concepts,Control Cards作业控制卡(Cont.),Parts of resident monitor常驻管理程序的一部分 Control card interpreter responsible for reading and carrying out instructions on the cards.控制卡片解释器 - 负责读出和执行卡上的指令 Loader loads systems programs and applications programs into memory.装载程序 - 把系统程序和应用程序调入内存 Device drivers know special characteristics and properties for each of the systems I/O devices.设备驱动程序 - 了解系统每一个I/O设备的特点和性质 Problem: Slow Performance I/O and CPU could not overlap ; card reader very slow.问题:慢 - I/O和CPU不可能彼此覆盖;卡片阅读器很慢 Solution: Off-line operation speed up computation by loading jobs into memory from tapes and card reading and line printing done off-line.解决:脱机操作 - 从磁带和卡片调作业进入内存,而打印机脱机,加速运算,Applied Operating System Concepts,Spooling,Overlap I/O of one job with computation of another job. While executing one job, the OS. 一个作业的I/O 同另一个作业的运算彼此重叠。在执行一个作业时,OS。 Reads next job from card reader into a storage area on the disk (job queue).从卡片上把下一个作业读入磁盘存储区(作业队列) Outputs printout of previous job from disk to printer.从磁盘到打印机输出先前的作业 Job pool 作业池 data structure that allows the OS to select which job to run next in order to increase CPU utilization. 一种允许操作系统选择运行作业的数据结构,用以提高CPU利用率,Applied Operating System Concepts,Multiprogrammed Batch Systems 多道程序批处理系统,Several jobs are kept in main memory at the same time, and the CPU is multiplexed among them. 在主存中同时有若干个作业, CPU在其中多重切换。,Applied Operating System Concepts,OS Features Needed for Multiprogramming 多道程序对OS特点的要求,I/O routine supplied by the system. 系统提供I/O程序 Memory management存储管理 the system must allocate the memory to several jobs.系统必须为若干作业分派空间 CPU scheduling CPU调度 the system must choose among several jobs ready to run.系统必须在就绪作业中挑选 Allocation of devices. 设备分配,Applied Operating System Concepts,Time-Sharing SystemsInteractive Computing 分时系统-交互式计算,The CPU is multiplexed among several jobs that are kept in memory and on disk (the CPU is allocated to a job only if the job is in memory).对保存在内存和磁盘上的若干作业之间多路( CPU被分配给某个作业仅当该作业在内存) A job is swapped in and out of memory to the disk.作业在内存和磁盘之间被对换 On-line communication between the user and the system is provided; when the operating system finishes the execution of one command, it seeks the next “control statement” not from a card reader, but rather from the users keyboard.提供用户和系统之间的在线通信;操作系统完成了一条命令的执行后,它不从卡片阅读机上而是从用户键盘上寻找下一条控制语句 On-line system must be available for users to access data and code. 在线系统必须使用户能够访问数据和代码,Applied Operating System Concepts,Personal-Computer Systems 个人计算机系统,Personal computers computer system dedicated to a single user. 个人计算机 - 供个人使用的计算机系统 I/O devices keyboards, mice, display screens, small printers. I/O设备 - 键盘、鼠标、显示、小型打印机 User convenience and responsiveness.便利用户和响应 Can adopt technology developed for larger operating system often individuals have sole use of computer and do not need advanced CPU utilization of protection features. 可采用大型操作系统研发的技术,个人独占计算机不需要高级CPU使用的保护技术,Applied Operating System Concepts,Migration of Operating-System Concepts and Features 操作系统概念和特性的变迁,Applied Operating System Concepts,Parallel Systems并行系统,Multiprocessor systems with more than one CPU in close communication.有紧密通信的、多于一个CPU的多处理器系统 Tightly coupled system processors share memory and a clock; communication usually takes place through the shared memory. 紧偶合系统 - 处理器共享内存和时钟;一般通过共享内存进行通信 Advantages of parallel system: 并行系统的优点 Increased throughput增大吞吐量 Economical 经济 Increased reliability提高可靠性 graceful degradation(有故障时)优雅的降低性能 fail-soft systems(又称)软失效系统,Applied Operating System Concepts,Parallel Systems并行系统(Cont.),Symmetric multiprocessing (SMP)对称多处理 器 Each processor runs an identical copy of the operating system. 每个处理器运行操作系统的相同副本 Many processes can run at once without performance deterioration.许多进程可以立即运行不会降低性能 Most modern operating systems support SMP多数现代操作系统支持SMP Asymmetric multiprocessing非对称多处理器 Each processor is assigned a specific task; master processor schedules and allocates work to slave processors.每个处理器赋予一个特定任务;主处理器为从处理器调度和分配作业 More common in extremely large systems常用在非常大的系统中,Applied Operating System Concepts,Symmetric Multiprocessing Architecture 对称多处理器体系结构,Applied Operating System Concepts,Real-Time Systems实时系统,Often used as a control device in a dedicated application such as controlling scientific experiments, medical imaging systems, industrial control systems, and some display systems.通常作为控制设备在诸如控制科学实验、医学影象系统、工业控制系统以及一些显示系统中应用 Well-defined fixed-time constraints.严格确定的时间限制 Hard real-time system.硬实时系统 Secondary storage limited or absent, data stored in short-term memory, or read-only memory (ROM)有限的或没有次级存储器,数据存在短期存储器或只读存储器中 Conflicts with time-sharing systems, not supported by general-purpose operating systems.同分时系统冲突,通用操作系统 Soft real-time system软实时系统 Limited utility in industrial control or robotics在工业控制或机器人中有部分应用 Useful in applications (multimedia, virtual reality) requiring advanced operating-system features.在需要高级操作系统 功能的应用(多媒体、虚拟现实)中应用,Applied Operating System Concepts,Distributed
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 今天幼师面试题及答案
- 司法助理考试题及答案
- 广西模拟地理试题及答案
- 2024年纺织材料研发方向试题及答案
- 瑞众保险笔试题及答案
- 广告拓展市场的成功案例试题及答案
- 定西医院招聘试题及答案
- 助理广告师考试学习路径试题及答案
- 深度解读纺织品行业的重要指标试题及答案
- 广告设计师创新设计方向试题及答案
- 贺兰山东麓干红葡萄酒多酚组分与其抗氧化、抗癌活性的关联性研究
- 第15课+十月革命的胜利与苏联的社会主义实践【高效备课精研 + 知识精讲提升】 高一历史 课件(中外历史纲要下)
- 灭火器维修与报废规程
- (4.3.1)-3.3我国储粮生态区的分布
- 辽宁盘锦浩业化工“1.15”泄漏爆炸着火事故警示教育
- 2023年衡阳市水务投资集团有限公司招聘笔试题库及答案解析
- 110~750kV架空输电线路设计规范方案
- 北师大版五年级数学下册公开课《包装的学问》课件
- 车辆采购、维修服务投标方案
- 北师大版英语八年级下册 Unit 4 Lesson 11 Online Time 课件(30张PPT)
- 浅析商业综合体的消防疏散
评论
0/150
提交评论