1. Trang chủ
  2. » Công Nghệ Thông Tin

Lecture Operating systems Internals and design principles (6 E) Chapter 2 William Stallings

58 700 0
Tài liệu được quét OCR, nội dung có thể không chính xác

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 58
Dung lượng 412,96 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Chapter 2 Operating system overview, after studying this chapter, you should be able to: Summarize, at a top level, the key functions of an operating system (OS); discuss the evolution of operating systems for early simple batch systems to modern complex systems; discuss the key design areas that have been instrumental in the development of modern operating systems;...

Trang 1

Chapter 2 Operating System Overview

Patricia Roy Manatee Community College, Venice,

Trang 3

Operating System Objectives

• Convenience

• Efficiency

• Ability to evolve

Trang 4

Layers and Views

Trang 5

Services Provided by the OS

Trang 6

Services Provided by the OS

• Controlled access to files

• System access

Trang 7

Services Provided by the OS

• Error detection and response

– Internal and external hardware errors

– Software errors

– Operating system cannot grant request of application

Trang 8

Services Provided by the OS

• Accounting

– Collect usage statistics

– Monitor performance

– Used to anticipate future enhancements

– Used for billing purposes

Trang 9

Operating System

• Responsible for managing resources

• Functions same way as ordinary computer software

– It is a program that is executed

• Operating system relinquishes control of the processor

Trang 10

OS as Resource Manager

Trang 11

• Portion of operating system that is in main memory

• Contains most frequently used functions

• Also called the nucleus

Trang 15

Evolution of Operating

Systems

• Simple batch system

– Monitor

• Software that controls the sequence of events

• Batch jobs together

• Program returns control to monitor when finished

Trang 16

Job Control Language

• Special type of programming language

• Provides instruction to the monitor

– What compiler to use

– What data to use

Trang 19

Memory Protection

• User program executes in user mode

– Certain instructions may not be executed

Trang 20

Memory Protection

• Monitor executes in system mode

– Kernel mode

– Privileged instructions are executed

– Protected areas of memory may be accessed

Trang 21

System Utilization Example

Trang 22

• Processor must wait for I/O instruction to complete before proceeding

Trang 23

• When one job needs to wait for I/O, the processor can switch to the other job

Trang 24

Multiprogramming

Trang 25

Utilization Histograms

Trang 26

Example

Trang 27

Time Sharing Systems

• Using multiprogramming to handle multiple interactive jobs

• Processor’s time is shared among multiple users

• Multiple users simultaneously access the system through terminals

Trang 28

Batch Multiprogramming versus

Time Sharing

Trang 29

CTSS Operation

Trang 30

Major Achievements

• Processes

• Memory management

• Information protection and security

• Scheduling and resource management

• System structure

Trang 32

• A unit of activity characterized by

– A single sequential thread of execution– A current state

– An associated set of system resources

Trang 33

Difficulties with Designing

System Software

• Improper synchronization

• Failed mutual exclusion

• Nondeterminate program operation

• Deadlocks

Trang 35

Process

Trang 36

Memory Management

• Process isolation

• Automatic allocation and management

• Support of modular programming

• Protection and access control

• Long-term storage

Trang 37

Virtual Memory

• Implements long-term store

• Information stored in named objects called files

• Allows programmers to address memory from a logical point of view

Trang 38

• 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 anywhere in main memory

• Real address or physical address is the main memory address

Trang 39

Virtual Memory

Trang 40

Virtual Memory Addressing

Trang 41

Information Protection and

– Assuring that users cannot read data for

which access is unauthorized

Trang 42

Information Protection and

Trang 43

Scheduling and Resource

Trang 44

Scheduling and Resource

Management

• Efficiency

– Maximize throughput, minimize response time, and accommodate as many uses as possible

Trang 45

Key Elements of an Operating

System

Trang 46

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

Trang 47

– Processor’s instruction set

– Operations such as add, subtract, load, and store

Trang 49

Concepts Related to Multiprogramming

• Level 5

– Process as a program in execution

– Suspend and resume processes

• Level 6

– Secondary storage devices

– Transfer of blocks of data

Trang 50

Concepts Related to Multiprogramming

• Level 7

– Creates logical address space for processes– Organizes virtual address space into blocks

Trang 51

Deal with External Objects

Trang 52

Deal with External Objects

Trang 53

Modern Operating Systems

Trang 54

Modern Operating Systems

Trang 55

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

Trang 56

Multiprogramming and

Multiprocessing

Trang 57

Modern Operating Systems

• Distributed operating systems

– Provides the illusion of a single main memory space and single secondary memory space

Trang 58

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

Ngày đăng: 16/05/2017, 14:03

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN