43
1 张张张 张张张 [email protected] 实实实实实 实实

实用操作系统概念

  • Upload
    abril

  • View
    43

  • Download
    10

Embed Size (px)

DESCRIPTION

实用操作系统概念. 张惠娟 副教授 [email protected]. 内容框架. 概述 体系结构 进程管理 内存管理 文件管理 外设管理. ch1: Introduction. 操作系统基本概念 操作系统发展 常用操作系统. 操作系统基本概念. 计算机系统组成 操作系统目标 操作系统定义. 计算机系统组成. Hardware provides basic computing resources (CPU, memory, I/O devices). Operating system - PowerPoint PPT Presentation

Citation preview

Page 2: 实用操作系统概念

2

内容框架 概述 体系结构 进程管理 内存管理 文件管理 外设管理

Page 3: 实用操作系统概念

3

ch1: Introduction

操作系统基本概念 操作系统发展 常用操作系统

Page 4: 实用操作系统概念

4

操作系统基本概念

计算机系统组成操作系统目标操作系统定义

Page 5: 实用操作系统概念

5

计算机系统组成 Hardware provides basic computing resources (CPU,

memory, I/O devices).Operating system controls and coordinates the use of the hardware

among the various application programs for the various users.

Page 6: 实用操作系统概念

6

计算机系统组成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).

Users

people, machines, other computers

Page 8: 实用操作系统概念

8

操作系统定义 Resource allocator

manages and allocates resources Control program

controls the execution of user programs and operations of I/O devices .

Kernel

the one program running at all times (all else being application programs).

Page 9: 实用操作系统概念

9

操作系统目标 A program that acts as an intermediary

between a user of a computer and the computer hardware.

Operating system goals:Make the computer system convenient to

use.Use the computer hardware in an efficient

manner.

Page 11: 实用操作系统概念

11

发展阶段 Batch Systems(作业批处理) Time-Sharing Systems(分时系统) Personal-Computer Systems

( PC系统) Parallel Systems (并行系统) Distributed Systems (分布系统) Real -Time Systems (实时系统)

Page 13: 实用操作系统概念

13

Resident monitor

( 驻留内存的监控程序 ) initial control in monitor

control transfers to job

when job completes control

transfers back to monitor

Batch Systems

Page 15: 实用操作系统概念

15

控制卡Special cards that tell the resident monitor which

programs to run $JOB

$FTN program to be compiled(源程序卡叠) $LOAD $RUN data for program(数据卡叠) $END

Batch Systems

Page 16: 实用操作系统概念

16

Problem Slow Performance : I/O and CPU could not

overlap

SolutionMultiprogrammed Batch Systems speed up computation by loading jobs into memory from tapes and card reading and line printing done off-line.

Batch Systems

Page 17: 实用操作系统概念

17

Multiprogrammed Batch Systems Several jobs are kept in main memory at the same time, and the CPU is multiplexed among them.

Batch Systems

Page 18: 实用操作系统概念

18

对操作系统提出的新要求:I/O routine supplied by the system.Memory management – the system must

allocate the memory to several jobs.CPU scheduling – the system must choose

among several jobs ready to run.Allocation of devices.

Batch Systems

Page 19: 实用操作系统概念

19

Problem

提高了资源利用率,但缺少人机交互性。 Solution

Time-Sharing Systems

Batch Systems

Page 20: 实用操作系统概念

20

Time-Sharing Systems 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).

A job is swapped in and out of memory to the disk.

On-line communication between the user and the system is provided;

On-line system must be available for users to access data and code.

Page 21: 实用操作系统概念

21

Personal-Computer Systems

Personal computers – computer system dedicated to a single user.

I/O devices – keyboards, mice, display screens, small printers.

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.

Page 23: 实用操作系统概念

23

Parallel Systems

Tightly coupled system – processors share memory and a clock; communication usually takes place through the shared memory.

Advantages of parallel system: Increased throughputEconomical Increased reliability

Page 24: 实用操作系统概念

24

Parallel Systems

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

Asymmetric multiprocessingEach processor is assigned a specific task; master

processor schedules and allocates work to slave processors.

More common in extremely large systems

Page 26: 实用操作系统概念

26

Distributed Systems Distribute the computation among several

physical processors. Loosely coupled system – each processor has its

own local memory; processors communicate with one another through various communications lines, such as high-speed buses or telephone lines.

Advantages of distributed systems.Resources Sharing Computation speed up – load sharing ReliabilityCommunications

Page 27: 实用操作系统概念

27

Distributed Systems

Network Operating Systemprovides file sharing provides communication schemeruns independently from other computers on

the networkDistributed Operating System

less autonomy between computersgives the impression there is a single

operating system controlling the network.

Page 28: 实用操作系统概念

28

Real-Time 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 systemLimited utility in industrial control or roboticsUseful in applications (multimedia, virtual reality)

requiring advanced operating-system features.

Page 29: 实用操作系统概念

29

发展规律 操作系统发展是由低层硬件、软件技 术与上层应用需求的发展所推动的 操作系统每一步发展都是权衡的结果

Page 30: 实用操作系统概念

30

常用操作系统 微软 OS产品 UNIX产品 自由软件 IBM 的 OS产品 其它 OS产品

Page 32: 实用操作系统概念

32

UNIX产品发展

产生: 69 年 AT& T 公司贝尔实验室 第二阶段( 73-79 ):免费扩散第三阶段( 75-85 ):商用版本的出现( 77年) 和三大主线的形成第四阶段( 80年代后期)两大阵营和标准化第五阶段( 90年代至今)共同面对外来竞争、

两大阵营淡化

Page 34: 实用操作系统概念

34

早期优点:– 内核结构小巧精湛– 接口简洁统一– 功能丰富实用– 用高级语言编写和好的结构导致可移植性好– 源码免费开放

早期缺点:– 缺乏图形界面– 内核单体结构可扩充性差

UNIX产品

Page 35: 实用操作系统概念

35

现在这些优缺点有的还在,有的没有了– 结构越来越庞大– 源码免费开放和简单许可证形式促进了早期的普及,但也导致各变种间的不兼容

– 图形界面大大增强– 内核仍是单体结构– 源码不开放后又开始开放

UNIX产品

Page 36: 实用操作系统概念

36

自由软件软件按提供方式和是否盈利划分为三种模式 :

商业软件、共享软件、自由软件自由软件的自由( free)有两个含义:

可免费提供任何用户使用 其源码公开和可自由修改

Page 37: 实用操作系统概念

37

自由软件Linux发展

1990- 91 芬兰赫尔辛基大学计算机系大学生Linus Torvalds

91年底 Linus在赫尔辛基大学 FTP服务器发布93 年 Linux 1.0,完全自由版权98年开始 Linux热

Page 38: 实用操作系统概念

38

自由软件 linux特点

免费、源代码开放具有出色的稳定性和速度性能功能完善,尤其网络功能丰富硬件需求低用户程序众多(而且大部分是免费软件),硬件支持广泛,程序兼容性好

Page 39: 实用操作系统概念

39

自由软件 linux未来

Linux受欢迎的原因 客观原因: Linux本身成本、性能和可能性等优势

主观原因:反微软情绪另一种声音:审慎和怀疑 业余爱好者开发 自由软件的技术支持和服务支持 Linux结构和功能上的不足优点和优势仍占主导地位:服务器 OS市场第二

Page 40: 实用操作系统概念

40

IBM 的 OS产品 AIX 5L IBM RS/6000和 SP结点上的高端 UNIX zOS IBM z/900大型主机系统 64 位专有 OS VM和 VSE S38/s370/S360大型主机系统 OS/400 IBM AS/400服务器专有 OS(原小型机) OS/2 Warp 4.0: IBM PS/2微机 PC DOS 7和 PC DOS 2000: IBM PC个人机

Page 41: 实用操作系统概念

41

其它 os

Mac OS 10 美国 APPLE公司 Macintosh微机NetWare 5 美国 Novell公司的网络操作系统

Page 42: 实用操作系统概念

42

小节 理解操作系统定义 操作系统发展的原因和各个阶段特点