Part I Overview Chapter 1: Introduction

Similar documents
Part I Introduction Hardware and OS Review

Operating Systems Course 2 nd semester 2016/2017 Chapter 1: Introduction

Computer-System Architecture (cont.) Symmetrically Constructed Clusters (cont.) Advantages: 1. Greater computational power by running applications

Computer-System Organization (cont.)

CS6401- Operating System QUESTION BANK UNIT-I

Chapter 1: Introduction. Operating System Concepts 8th Edition,

Introduction. What is an Operating System? A Modern Computer System. Computer System Components. What is an Operating System?

CS370 Operating Systems

Lecture 1 Introduction (Chapter 1 of Textbook)

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

CSE Opera+ng System Principles

CS370 Operating Systems

Chapter 1: Introduction

Module 1: Introduction

Chapter 1: Introduction

Operating Systems Fundamentals. What is an Operating System? Focus. Computer System Components. Chapter 1: Introduction

Operating Systems. Introduction & Overview. Outline for today s lecture. Administrivia. ITS 225: Operating Systems. Lecture 1

CSC 2405: Computer Systems II

European University of Lefke. Instructor: Dr. Arif SARI

Chapter 1 Computer System Overview

Introduction CHAPTER. Practice Exercises. 1.1 What are the three main purposes of an operating system? Answer: The three main puropses are:

Operating Systemss and Multicore Programming (1DT089)

UNIT I OPERATING SYSTEMS OVERVIEW

Chapter 1: Introduction Dr. Ali Fanian. Operating System Concepts 9 th Edit9on

To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization

Chapter 1: Introduction

OPERATING SYSTEMS UNIT - 1

Basic Computer Hardware

Operating Systems: Internals and Design Principles, 7/E William Stallings. Chapter 1 Computer System Overview

DM510 Operating Systems. Jacob Aae Mikkelsen

Introduction. TDDI04, K. Arvidsson, IDA, Linköpings universitet Contents. What is an Operating System (OS)?

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

Operating System: an Overview. Lucia Dwi Krisnawati, MA

7/20/2008. What Operating Systems Do Computer-System Organization

Course Details. Operating Systems with C/C++ Course Details. What is an Operating System?

CHAPTER 1 - INTRODUCTION. Jacob Aae Mikk elsen

Computer System Overview OPERATING SYSTEM TOP-LEVEL COMPONENTS. Simplified view: Operating Systems. Slide 1. Slide /S2. Slide 2.

Module 1: Introduction

Operating System Review

Operating Systems. Lecture Course in Autumn Term 2015 University of Birmingham. Eike Ritter. September 22, 2015

Last class: Today: Course administration OS definition, some history. Background on Computer Architecture

CS420: Operating Systems

Introduction to Operating Systems (Part II)

Module 1: Introduction. What is an Operating System?

Chapter 1 Introduction

Overview of Operating Systems

UNIT 1. INTRODUCTION: COMPUTER & OPERATING SYSTEMS

Introduction to Operating Systems

Course Content. 07-Feb-17 Faculty of Computer Science & Engineering 1 BK TP.HCM

ECE397A Operating Systems. Chapter 1: Introduction

Operating Systems. Computer Science & Information Technology (CS) Rank under AIR 100

Computer System Overview

Chapter 1 Computer System Overview

Chapter-1: Exercise Solution

Computer System Overview

Module 2: Computer-System Structures. Computer-System Architecture

Overview of Operating Systems

Introduction to Computer Systems and Operating Systems

Chapter 1 Computer System Overview

Key Concepts and Topics:

Operating Systems. studykorner.org

Chapter 1: Introduction

Chapter 1: Introduction. Chapter 1: Introduction

CSC 553 Operating Systems

What Operating Systems Do An operating system is a program hardware that manages the computer provides a basis for application programs acts as an int

Operating System: Chap13 I/O Systems. National Tsing-Hua University 2016, Fall Semester

Operating Systems (2INC0) 2018/19. Introduction (01) Dr. Tanir Ozcelebi. Courtesy of Prof. Dr. Johan Lukkien. System Architecture and Networking Group

CS420: Operating Systems

Introduction. Operating Systems (Fall/Winter 2018) Yajin Zhou ( Zhejiang University

1. Operating System Concepts

Operating Systems Overview. Chapter 2

Today: Computer System Overview (Stallings, chapter ) Next: Operating System Overview (Stallings, chapter ,

Hardware OS & OS- Application interface

Module 1 Introduction/OS Overview

MODULE 1. INTRODUCTION: COMPUTER & OPERATING SYSTEMS

1.1 Introduction. Fig.1.1 Abstract view of the components of a computer system.

C02: Interrupts and I/O

CHAPTER-1: INTRODUCTION TO OPERATING SYSTEM:

Chapter 1: Introduction

Last 2 Classes: Introduction to Operating Systems & C++ tutorial. Today: OS and Computer Architecture

Chapter 1: Introduction. Operating System Concepts 8 th Edition,

Four Components of a Computer System

Misc. Third Generation Batch Multiprogramming. Fourth Generation Time Sharing. Last Time Evolution of OSs

OPERATING- SYSTEM CONCEPTS

Introduction CHAPTER. Exercises

Operating System Concepts 9 th Edit9on

OPERATING SYSTEM. Functions of Operating System:

Architecture and OS. To do. q Architecture impact on OS q OS impact on architecture q Next time: OS components and structure

THE CPU SPENDS ALMOST ALL of its time fetching instructions from memory

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

by I.-C. Lin, Dept. CS, NCTU. Textbook: Operating System Concepts 8ed CHAPTER 13: I/O SYSTEMS

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

Chapter 5 B. Large and Fast: Exploiting Memory Hierarchy

ECE331: Hardware Organization and Design

Four Components of a Computer System. Operating System Concepts 7 th Edition, Jan 12, 2005

Some popular Operating Systems include Linux Operating System, Windows Operating System, VMS, OS/400, AIX, z/os, etc.

Computer Organization ECE514. Chapter 5 Input/Output (9hrs)

Chapter 1: Introduction. What is an Operating System? Overview Course (contd.) How do I spend my time? Computer System Components

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION

Unit 2 : Computer and Operating System Structure

Transcription:

Part I Overview Chapter 1: Introduction Fall 2010 1

What is an Operating System? A computer system can be roughly divided into the hardware, the operating system, the application i programs, and dthe users. The hardware (i.e., CPU, memory, I/O devices) provides the basic computing resources. The application programs (e.g., web browsers, word processors, and compilers) are used dto solve user problems. The operating system controls and coordinates the use of hardware among various application programs. 2

User View PC Users: an operating system is a program that provides an easy-to-use interface for using the hardware. Mainframe/Minicomputer Users: an operating system is a program that helps maximize the system resource utilization. Workstation Users: an operating system is a program designed to compromise between individual usability and resource utilization. 3

System View A Resource Manager: an operating system allocates and reclaims system hardware resources to and from user programs. A Control Program: an operating system controls the execution of user programs to prevent errors and improper use of the computer. There is no universal definition of what an operating system is. A common definition is that the operating system is the one program running at all times on the computer (i.e., the kernel). All other programs are application programs. 4

The Goals of an Operating System Primary Goal: efficient operation of the computer system. In some systems, it is easy of use. In general, efficiency is far more important than easy of use. 5

Computer-System Organization Computer-System Operation Storage Structure (von Neumann architecture): CPU-Memory Fetch-decode-execute-store I/O structure More on the next few slides 6

Computer System Operation CPU system bus disk disk printer Keyboard Mouse Disk USB Controller Controller Memory Controller tapes Tape Controller How does the OS get into system? How do we request for services? How does the OS know something has happened? Memory 7

Storage Hierarchy slower and larger volume reg. cache main mem. faster and more expansive electronic disk magnetic disk optical disk magnetic tape 8

I/O Structure a typical PCI bus structure 9

Interrupt t and Trap An event that requires the attention of the OS is an interrupt. These events include the completion of an I/O, a keypress, a request for service, a division by zero and so on. Interrupts may be generated by hardware or software. An interrupt generated by software (i.e., division by 0) is usually referred to as a trap. Modern operating systems are interrupt driven,, meaning the OS is in action only if an interrupt occurs. 10

What is Interrupt-Driven? en? interrupt kernel The OS is activated by an interrupt service interrupt. handler The executing program is mode switch suspended. Control is transferred to the OS. Program ADD #4, 3 continues when the service completes. 11

CPU device driver initiates I/O I/O Interrupt I/O Controller receives interrupt calls interrupt t handler initiates I/O processes data and returns done raises interrupt resumes the Interrupt task 12

Direct Memory Access For large volume data transfer, most systems use direct memory access to avoid burdening the CPU. The CPU gives the controller (1) disk address, (2) memory address for storing the block, and d(3) a byte count. Then, the CPU goes back to work. 13

Computer-System t Architecture t Single-Processor Systems Multiprocessor Systems Clustered Systems **details will be presented in next few pages** 14

Multiprocessor Systems: 1/3 Multiprocessor systems, aka parallel systems or tightly coupled systems, have more than one CPUs. Advantages: Increased throughput: gets more jobs done Economy of scale: Because of resource sharing, multiprocessor systems is cheaper than multiple single processor systems. Increased reliability: the failure of one processor will not halt the whole system. 15

Multiprocessor Systems: 2/3 Asymmetric Multiprocessing: i Each processor is assigned a specific task. A master processor controls the system. The other processors either look to the master for instructions or have predefined dtasks. This defines a master-slave relationship. Symmetric Multiprocessing (SMP): Each processor performs all tasks within the OS All processors are peers rather than master-slave These copies communicate with each other. 16

Multiprocessor Systems: 3/3 Symmetric Multiprocessing (SMP): Each processor performs all tasks within the OS All processors are peers; no master-slave relationship exists 17

Multicore CPUs This is multiprocessor on a single chip. They are more efficient because communications among cores are faster than among CPUs. They consume less power 18

Clustered Systems A clustered system has two or more individual systems connected by a local area network (LAN) or interconnection network. The key of clustered system is high availability. Asymmetric Clustering: One machine is in hot-standby mode while other machines are running applications. The hot-standby machine (i.e., does nothing but) monitors other machines and becomes active if one server fails. Symmetric Clustering: Two or more hosts are running applications and monitor each other. This is more efficient as it uses all available hardware. 19

Operating-System Structure 1/4 Single User Multi-User Multiprogrammed Time-sharing systems OS User Program OS Job 1 Job 2 terminal terminal terminal Job n User 1 User 2 User n OS 20

Operating-System Structure: 2/4 OS User Program Single User System Users submit programs to an operator. Programs are batched. A job scheduler determines which h program runs next. Very inefficient i because the CPU is idle when the running program is performing I/O. 21

Operating-System Structure: 3/4 Multiprogrammed Systems OS Job 1 Job 2 Job 3 Job n Several programs may run in the system at the same time. A CPU scheduler selects a job to use the CPU. A job scheduler selects jobs to enter the system. While a job is doing I/O, another can use the CPU. Thus, it is more efficient. 22

Operating-System Structure: 4/4 Time-Sharing Systems User User System User User Users provide instructions ti to the OS or programs directly using a keyboard or a mouse. The response time should be short. Thus, time-sharing systems maximize usability while batch systems maximize resource usage. 23

Operating-System Operations OS is interrupt driven Dual Mode Operation Timer interrupt kernel interrupt service handler mode change ADD #4, 3 24

Dual-Mode Operation Modern CPUs have two execution modes: the user mode and the supervisor (or system, privileged) mode, controlled by a mode bit. The OS runs in the supervisor mode and all user programs run in the user mode. Some instructions that may do harm to the OS (e.g., doing I/O) are privileged instructions. Privileged instructions, for most cases, can only be used in the supervisor model. When the control switches to the OS (resp., a user program), execution mode will be changed to the supervisor (resp., user) mode. 25

Timer Because the operating system must maintain the control over the CPU, we must prevent a user program from getting gthe CPU forever or not calling system service. Use an interval timer! An interval timer is a count-down timer. Before a user program runs, the OS sets the interval timer to certain value. Once the interval timer counts down to 0, an interrupt is generated and the OS can take appropriate action. 26

Distributed Systems: 1/3 A distributed system is a collection of physically y separate, perhaps heterogeneous computer systems that are networked to provide the users with access to the various resources that the system maintains. By being able to communicate, distributed systems are able to share computational tasks, and provide a rich set of features to users. 27

Distributed Systems: 2/3 A network operating system is an OS that provides features such as file sharing across the network includes a communication scheme that allows different processes running on different computers to exchange messages A computer in a network operating system acts autonomously from all other computers on the network, although h it is aware of the network and is able to communicate with other computers. 28

Distributed Systems: 3/3 A distributed operating system is less autonomous. Different operating systems communicate closely enough to provide the illusion that only a single operating system controls the network. 29

Client-Server Computing Some systems are assigned as servers to satisfy requests generated by client systems. Client-server systems are specialized distributed systems. In general, there are two types of server systems Computer-Server: provides an interface to which clients send requests to perform an action. The server executes the action and sends back the results. File-Server: provides a file system interface where clients create, update, read and delete files. client client client client network server 30

Real-Time Operating Systems A real-time operating system has well-defined, fixed time constraints. Processing must be done within the defined constraints, or the system will fail. Hard Real-Time Systems guarantee that critical tasks be completed on time. Soft Real-Time Systems prioritize critical tasks. That is, a critical task receives priority it over other tasks, and retains that priority until it completes. Embedded systems almost always run real-time operating systems. 31

The End 32