1 what is an operating system? csc330patricia van hise

18
1 What is an operating What is an operating system? system? CSC330 Patricia Van Hise

Post on 22-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 What is an operating system? CSC330Patricia Van Hise

1

What is an operating What is an operating system?system?

CSC330 Patricia Van Hise

Page 2: 1 What is an operating system? CSC330Patricia Van Hise

2

What are the components of a computer system?

A computer system consists ofhardwaresystem programsapplication programs

Page 3: 1 What is an operating system? CSC330Patricia Van Hise

3

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. (User interface, API) Use the computer hardware in an efficient

manner.

Page 4: 1 What is an operating system? CSC330Patricia Van Hise

4

A Computer SystemA Computer System

Page 5: 1 What is an operating system? CSC330Patricia Van Hise

5

Functions of an OS Interface

Acts as an abstract virtual machine Hides the details from user Control execution of programs and operations of control

devices

Resource manager Maximize system utilization and/or performance

Time and space Sharing of limited or expensive physical resources Provides Protection

File storage, network communications, etc.

Page 6: 1 What is an operating system? CSC330Patricia Van Hise

6

History of Operating Systems First generation 1945 - 1955

vacuum tubes, plug boards

Second generation 1955 - 1965 transistors, batch systems

Third generation 1965 – 1980 ICs and multiprogramming

Fourth generation 1980 – present personal computers

Page 7: 1 What is an operating system? CSC330Patricia Van Hise

7

Structure of a typical FMS job – 2nd generation

Page 8: 1 What is an operating system? CSC330Patricia Van Hise

8

Multiprogramming system three jobs in memory – 3rd generation

Page 9: 1 What is an operating system? CSC330Patricia Van Hise

9

Today’s Range of Operating Systems

Mainframe operating systems Server operating systems Multiprocessor operating systems Personal computer operating

systems Real-time operating systems Embedded operating systems Smart card operating systems

Page 10: 1 What is an operating system? CSC330Patricia Van Hise

10

Migration of Operating-System Concepts and

Features

Page 11: 1 What is an operating system? CSC330Patricia Van Hise

11

Computer Hardware Review

Bus

Components of a simple personal computer

Page 12: 1 What is an operating system? CSC330Patricia Van Hise

12

(a) A three-stage pipeline(b) A superscalar CPU

The Von Neumann Cycle and Beyond

Page 13: 1 What is an operating system? CSC330Patricia Van Hise

13

numbers shown are rough approximations

Typical memory hierarchy

Page 14: 1 What is an operating system? CSC330Patricia Van Hise

14

One base-limit pair and two base-limit pairs

Page 15: 1 What is an operating system? CSC330Patricia Van Hise

15

Computer Hardware

Structure of a disk drive

Page 16: 1 What is an operating system? CSC330Patricia Van Hise

16

Structure of a large Pentium system

Page 17: 1 What is an operating system? CSC330Patricia Van Hise

17

Input/Output•An I/O device consists of two parts:

•Controller - chip that physically controls the device•The device itself

(The controller presents a simple interface to the operating system.)

•The software needed for each I/O device is called a driver.

•A driver gives commands to the controller and accepts its responses, and must run in kernel mode as part of the o.s.

•A device must have a different driver for each operating system it supports.

Page 18: 1 What is an operating system? CSC330Patricia Van Hise

18

3 Methods of I/OProgrammed I/O

Driver starts I/O and polls device to see if done;Busy wait

Interrupt drivenDriver starts device; driver returns control to OS. OS

blocks the caller and looks for other work to do.Device sends a signal, or interrupt, to the OS toindicate completion. OS then unblocks caller.

Direct Memory Access (DMA) - for high-speedI/O - transfers entire block of data with 1 interrupt

rather than 1 interrupt per byte.