已阅读5页,还剩63页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1,Operating System Overview,Chapter 2,2,Operating System,A program that controls the execution of application programs 控制应用程序 An interface between applications and hardware 应用系统和硬件之间的接口,3,Operating System Objectives 目标,Convenience 方便 Makes the computer more convenient to use Efficiency 有效 Allows computer system resources to be used in an efficient manner Ability to evolve 扩展的能力 Permit effective development, testing, and introduction of new system functions without interfering with service,4,Layers of Computer System,5,Services Provided by the Operating System,Program development 程序开发 Editors and debuggers Program execution 程序执行 Access to I/O devices 访问外设 Controlled access to files 访问文件 System access 访问系统功能,6,Services Provided by the Operating System,Error detection and response 错误侦测 Internal and external hardware errors Memory error Device failure Software errors Arithmetic overflow Access forbidden memory locations Operating system cannot grant request of application,7,Services Provided by the Operating System,Accounting 记账 Collect usage statistics Monitor performance Used to anticipate future enhancements Used for billing purposes,8,Operating System,Responsible for managing resources Functions same way as ordinary computer software It is program that is executed Operating system relinquishes control of the processor 操作系统和普通程序在同样的处理器上执行,9,10,Kernel 内核,Portion of operating system that is in main memory 驻留内存 Contains most frequently used functions Also called the nucleus,11,Evolution of an Operating System 发展,Hardware upgrades plus new types of hardware New services Fixes,12,Evolution of Operating Systems,Serial Processing 串行处理 No operating system Machines run from a console with display lights, toggle switches, input device, and printer Schedule time Setup included loading the compiler, source program, saving compiled program, and loading and linking,13,Evolution of Operating Systems,Simple Batch Systems 简单批处理系统 Monitors 监控程序 Software that controls the sequence of events Batch jobs together Program branches back to monitor when finished,14,Job Control Language (JCL),Special type of programming language Provides instruction to the monitor What compiler to use What data to use,15,Hardware Features,Memory protection 内存保护 Do not allow the memory area containing the monitor to be altered Timer Prevents a job from monopolizing the system,16,Hardware Features,Privileged instructions 特权指令 Certain machine level instructions can only be executed by the monitor Interrupts Early computer models did not have this capability,17,Memory Protection,User program executes in user mode Certain instructions may not be executed Monitor executes in system mode Kernel mode Privileged instructions are executed Protected areas of memory may be accessed,18,I/O Devices Slow,19,Uniprogramming 单道程序,Processor must wait for I/O instruction to complete before preceding,20,Multiprogramming 多道程序/多任务,When one job needs to wait for I/O, the processor can switch to the other job,21,Multiprogramming,22,Utilization Histograms 利用率,23,Example,24,Time Sharing,Using multiprogramming to handle multiple interactive jobs 交互作业 Processors time is shared among multiple users Multiple users simultaneously access the system through terminals,25,Compatible Time-Sharing System (CTSS),First time-sharing system developed at MIT,26,Major Achievements 主要成就,Processes 进程 Memory Management 内存管理 Information protection and security 信息保护和安全 Scheduling and resource management 调度和资源管理 System structure 系统结构,27,Processes 进程,A program in execution 正在执行的程序 An instance of a program running on a computer 正在执行的程序的实例 The entity that can be assigned to and executed on a processor 可以分配给处理器执行的实体 A unit of activity characterized by a single sequential thread of execution, a current state, and an associated set of system resources 单一的执行线索,28,Difficulties with Designing System Software 软件设计的难处,Improper synchronization 不正确的同步 Ensure a process waiting for an I/O device receives the signal Failed mutual exclusion 失败的互斥 Nondeterminate program operation 不确定的操作 Program should only depend on input to it, not on the activities of other programs Deadlocks 死锁,29,Process 进程,Consists of three components An executable program 执行程序 Associated data needed by the program 数据 Execution context of the program 上下文 All information the operating system needs to manage the process,30,Process,31,Memory Management,Process isolation 进程隔离 Automatic allocation and management 分配管理 Support of modular programming 支持模块程序设计 Protection and access control 保护和访问控制 Long-term storage 长期存储,32,Virtual Memory 虚拟内存,Allows programmers to address memory from a logical point of view 使用逻辑逻辑内存 No hiatus between the execution of successive processes while one process was written out to secondary store and the successor proceess was read in 透明的,33,Virtual Memory and File System,Implements long-term store Information stored in named objects called files,34,Paging 分页,Allows process to be comprised of a number of fixed-size blocks, called pages 分成固定大小的块,页 Virtual address is a page number and an offset within the page 虚拟地址由页号和偏移量组成 Each page may be located any where in main memory 页可以装入到内存任何地方 Real address or physical address in main memory 虚拟地址必须转换成物理地址才能访问内存,35,Virtual Memory,36,Virtual Memory Addressing,37,Information Protection and Security,Availability 保护系统不被打断 Concerned with protecting the system against interruption Confidentiality 保密 Assuring that users cannot read data for which access is unauthorized,38,Information Protection and Security,Data integrity 数据完整性 Protection of data from unauthorized modification Authenticity 认证 Concerned with the proper verification of the identity of users and the validity of messages or data,39,Scheduling and Resource Management,Fairness 公平 Give equal and fair access to resources Differential responsiveness 区别响应 Discriminate among different classes of jobs Efficiency 有效性 Maximize throughput, minimize response time, and accommodate as many uses as possible,40,Key Elements of Operating System,41,System Structure,View the system as a series of levels Each level performs a related subset of functions Each level relies on the next lower level to perform more primitive functions This decomposes a problem into a number of more manageable subproblems,42,Process Hardware Levels,Level 1 Electronic circuits Objects are registers, memory cells, and logic gates Operations are clearing a register or reading a memory location Level 2 Processors instruction set Operations such as add, subtract, load, and store,43,Process Hardware Levels,Level 3 Adds the concept of a procedure or subroutine, plus call/return operations Level 4 Interrupts,44,Concepts with Multiprogramming,Level 5 Process as a program in execution Suspend and resume processes Level 6 Secondary storage devices Transfer of blocks of data Level 7 Creates logical address space for processes Organizes virtual address space into blocks,45,Deal with External Objects,Level 8 Communication of information and messages between processes Level 9 Supports long-term storage of named files Level 10 Provides access to external devices using standardized interfaces,46,Deal with External Objects,Level 11 Responsible for maintaining the association between the external and internal identifiers Level 12 Provides full-featured facility for the support of processes Level 13 Provides an interface to the operating system for the user,47,Modern Operating Systems,Microkernel architecture Assigns only a few essential functions to the kernel Address spaces Interprocess communication (IPC) Basic scheduling,48,Modern Operating Systems,Multithreading Process is divided into threads that can run concurrently Thread Dispatchable unit of work executes sequentially and is interruptable Process is a collection of one or more threads,49,Modern Operating Systems,Symmetric multiprocessing (SMP) There are multiple processors These processors share same main memory and I/O facilities All processors can perform the same functions,50,Multiprogramming and Multiprocessing,51,Modern Operating Systems,Distributed operating systems Provides the illusion of a single main memory space and single secondary memory space,52,Modern Operating Systems,Object-oriented design Used for adding modular extensions to a small kernel Enables programmers to customize an operating system without disrupting system integrity,53,Windows Architecture,Modular structure for flexibility Executes on a variety of hardware platforms Supports application written for other operating system,54,55,Operating System Organization,Modified microkernel architecture Not a pure microkernel Many system functions outside of the microkernel run in kernel mode Any module can be removed, upgraded, or replaced without rewriting the entire system,56,Kernel-Mode Components,Executive Contains base operating system services Memory management Process and thread management Security I/O Interprocess communication Kernel Consists of the most used components,57,Kernel-Mode Components,Hardware abstraction layer (HAL) Isolates the operating system from platform-specific hardware differences Device drivers Translate user I/O function calls into specific hardware device I/O requests Windowing and graphics systems Implements the graphical user interface (GUI),58,Windows Executive,I/O manager Cache manager Object manager Plug and play manager Power manager Security reference monitor Virtual memory manager Process/thread manager Configuration manager Local procedure call (LPC) facility,59,User-Mode Processes,Special system support processes Ex: logon process and the session manager Service processes Environment subsystems User applications,60,Client/Server Model,Simplifies the Executive Possible to construct a variety of APIs Improves reliability Each service runs on a separate process with its own partition of memory Clients cannot not directly access hardware Provides a uniform means for applications to commu
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 吉林省四平市第三高级中学2024-2025学年高一上学期第二次质量检测历史试题
- 物理有没有进展课程设计
- 2024年演员聘用合同
- 2024年社区工作者测试题库
- 2025年中考道德与法治一轮复习之遵守社会规则
- 车身设计师的工作职能
- 酒店部门经理日常工作总结
- 2023年高考语文试卷(天津)(解析卷)
- 2024校本课程实施方案(35篇)
- 黄金卷7-【赢在中考·黄金八卷】(原卷版)
- 放射治疗技术常用放射治疗设备课件
- 保研推免个人简历
- 《计算机组成原理》武汉大学2023级期末考试试题答案
- 广东广州白云区2021学年第二学期期末学生学业质量诊断调研六年级语文(含答案)
- 公安院校公安专业招生体检表
- 选矿厂管理文件制度汇编
- 2023-2024学年四川省泸州市小学数学四年级上册期末评估测试题
- GB/T 9944-2015不锈钢丝绳
- GB/T 5019.11-2009以云母为基的绝缘材料第11部分:塑型云母板
- 初中生家长会ppt
- GA/T 168-2019法医学机械性损伤尸体检验规范
评论
0/150
提交评论