1. Trang chủ
  2. » Giáo án - Bài giảng

The architecture of computer hardware and systems software an information technology approach ch13

34 161 0

Đ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 34
Dung lượng 1,31 MB

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

Nội dung

Bare Bones Computer System Does not load instructions into main memory  No user interface except for I/O routines provided with executing program  Is idle when waiting for user input

Trang 1

Chapter 13

Operating Systems: An Overview

The Architecture of Computer Hardware

and Systems Software:

An Information Technology Approach

3rd Edition, Irv Englander John Wiley and Sons 2003

Trang 2

Bare Bones Computer System

 Does not load instructions into main

memory

 No user interface except for I/O routines provided with executing program

 Is idle when waiting for user input

 No facility to store, retrieve, or

manipulate files

 No ability to control peripheral devices

Trang 3

Integrated Computer Environment

Trang 4

Operating System – Basic Services

 Programs that accept commands and requests from a user and a user’s

Trang 5

Operating System – Additional Services

 Provides interfaces for the user and the user’s

programs

 File support services

 I/O support services

 Means of starting the computer

 Bootstrapping or booting the computer

 Initial Program Load (IPL)

 Handles all interrupt processing

 Network services

 Provides tools and services for concurrent processing

Trang 6

Additional Services Required by

 Provides feedback to the system

administrators to permit performance

optimization of the computer system

Trang 7

OS Parts

 Memory Resident

 Always loaded in memory

 Commonly called the kernel

 Contains essential services required by other parts of the operating

system and applications

 Typically responsible for managing memory management, processes and tasks, and secondary storage

 Memory Non-resident

 Applications

 Infrequently used programs, software tools, and commands

 Bootstrap program

 Diskless workstations or thin clients

 Programs, including the OS, are located on another computer on the network

Trang 8

Simplified Diagram of Operating

System Services

Trang 10

Hardware and the OS

 A hardware platform may support a variety of

 Provides program and file portability

 Enables user efficiency through recognizable interface

 Is implemented through a systems programming language like C or C++ as opposed to assembly language

Trang 11

Single Job Processing

 Only one program is loaded into

memory and executed

 Example: MS-DOS

 Memory resident components

 Command interface shell

 I/O routines, including BIOS

 File management system

 User program in control

Trang 12

OS Regains Control

 When program is finished control is transferred back to the command

interpreter

 If the user’s program requests I/O

 The user wishes to stop the program

execution via a keyboard interrupt

 System malfunctions

Trang 13

Single Job Processing

Disadvantages

 Lack of security

 Programs can overwrite the resident OS

 Programs can write directly to I/O devices

 System provides minimum memory

management and no scheduling

 CPU is often idle awaiting the completion of I/

O operations

Trang 16

Achieving Multitasking

 While one program is waiting for I/O to take place, another program is using the CPU to execute instructions

 Time-slicing The CPU may be

switched rapidly back and forth between different programs

 Dispatching is the process of selecting which program to run at any given

Trang 17

Sharing the CPU during I/O Breaks

 I/O represents a large percentage of a typical program’s execution

Trang 18

Time-sharing the CPU

Time slicing

Trang 19

Services and Facilities

 Command processor

 File management system

 I/O control system

 Process control management and interprocess

communication

 Memory management

 Scheduling system

 Secondary storage management

 System protection management

 Network management, communication support, and

communication interfaces

System Administration

Trang 20

User Interface and

Command Execution Services

 Types of user interfaces

 CLI - Command Line Interface

 GUI - Graphical User Interface

Trang 21

File Management

 File - logical unit of storage

 Basic file management system provides

 Directory structures for each I/O device

 Tools to copy and move files

 Information about each file in the system and the tools to access that information

 Security mechanisms to protects files and control access

 Additional file management features

 Backup, emergency retrieval and recovery

 File compression

 Transparent network file access

 auditing

Trang 22

I/O Services and

Process Control Management

 I/O services

 Startup configuration

 Device drives that implement interrupts and provide other techniques for handling I/O

 Plug and play: hot swapping, hot plugging

 Process control management

 A process is an executing program

 A thread is an individually executable part of a process

 Interprocess messaging services

Trang 23

Memory Management

 Keeps track of memory

 Identifies programs loaded into memory

 Amount of space each program uses

 Available remaining space

 Prevents programs from reading and writing

memory outside of their allocated space

 Maintains queues of waiting programs

 Allocates memory to programs that are next to

be loaded

 Deallocates a program’s memory space upon program completion

Trang 24

 Preemptive – uses clock interrupts

 Non-preemptive – program voluntarily gives up control

 Context switching

 Transfer control to the process that is being dispatched

 Nonpreemptive: program voluntarily gives up control

 Preemptive: uses clock interrupt for multitasking

 Processing requirements

Trang 25

Secondary Storage and Security

 Secondary storage management

 Optimizes completion of I/O tasks for efficient disk usage

 Combination of hardware and software

 Security and protection services

 Protect OS from users

 Protect users from other users

 Prevent unauthorized entry to system

 Prevent unauthorized system use by authorized users

Trang 26

Network and Communication Services

 TCP-IP protocol suite

 Locate and connect to other computers

 Access files, I/O devices, and programs from

remote systems

 Support distributed processing

 Network Applications

 Email, remote login, Web services, streaming

multimedia, voice over IP telephony, VPN

 Interface between communication software and OS I/O control system that provides

Trang 27

System Administration Support

 OS installations (system generation), patches, and upgrades

 System tuning and optimization

Trang 30

 Minimum essential functionality

 Client-server system on same system

 Clients request services from microkernel which passes message onto appropriate server

Trang 31

 Basic set of I/O drivers

 Macintosh OS X, IBM AIX on RS/6000

Trang 32

Types of Operating Systems

 Single user, single tasking

 Single user, multitasking

Trang 33

 Execution begins with bootstrap loader (mini-loader, IPL) stored in ROM

 Looks for OS program in a fixed location

 Loads OS into RAM

 Transfers control to starting location of

OS

 Loader program in OS used to load and execute user programs

Ngày đăng: 10/01/2018, 16:24

TỪ KHÓA LIÊN QUAN