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

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

Chapter 1: Introduction

European University of Lefke. Instructor: Dr. Arif SARI

Lecture 1 Introduction (Chapter 1 of Textbook)

DM510 Operating Systems. Jacob Aae Mikkelsen

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

Chapter 1: Introduction

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

Instruction Cycle. Computer-System Architecture. Computer-System Operation. Common Functions of Interrupts. Chapter 2: Computer-System Structures

Computer-System Architecture

Computer-System Architecture. Common Functions of Interrupts. Computer-System Operation. Interrupt Handling. Chapter 2: Computer-System Structures

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

CS3600 SYSTEMS AND NETWORKS

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

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

CS370 Operating Systems

Chapter 1: Introduction. Chapter 1: Introduction

Computer-System Structures

Chapter 1: Introduction

CPSC 341 OS & Networks. Introduction. Dr. Yingwu Zhu

CS370 Operating Systems

CSE Opera+ng System Principles

Four Components of a Computer System

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

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

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

OPERATING SYSTEMS: Lesson 1: Introduction to Operating Systems

Common Computer-System and OS Structures

Operating System Review

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

CS420: Operating Systems

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

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

Operating System Concepts 9 th Edit9on

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

CS420: Operating Systems

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

Chapter 2: Computer-System Structures. Hmm this looks like a Computer System?

Uniprocessor Computer Architecture Example: Cray T3E

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

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

Chapter 1 Computer System Overview

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

Computer-System Organization (cont.)

OPERATING SYSTEMS Lecture Notes. Prepared by K.Rohini, Assistant Professor, CSE Department, GVPCEW.

Part I Overview Chapter 1: Introduction

SRIMAAN COACHING CENTRE-TRB-COMPUTER INSTRUCTORS STUDY MATERIAL CONTACT: III

OPERATING SYSTEMS UNIT - 1

Introduction to Operating Systems

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

Operating System Services

Chapter 1: Introduction

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

Chapter 1: Introduction Operating Systems MSc. Ivan A. Escobar

Module 1: Introduction

CSC Operating Systems Spring Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. January 17 th, 2007.

Announcements. Operating System Structure. Roadmap. Operating System Structure. Multitasking Example. Tevfik Ko!ar

Operating Systems. studykorner.org

L-1! Silberschatz, Galvin and Gagne 2013! Operating System Concepts 9th Edition! Silberschatz, Galvin and Gagne 2013!

CHAPTER 1 - INTRODUCTION. Jacob Aae Mikk elsen

CS6401- Operating System QUESTION BANK UNIT-I

Operating Systems Spring 2013, Ort Braude College Electrical Engineering Department

Introduction. Chapter Prof. Amr El-Kadi

Introduction to Operating Systems (Part II)

Part I Introduction Hardware and OS Review

Chapter 1 Introduction

Operating System: an Overview. Lucia Dwi Krisnawati, MA

CSC 2405: Computer Systems II

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

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

Dinosaurs? & Dinosaur Wars. Outline & Questions. Evolution of our Textbook. Poll? Questions?

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

Architectural Support for Operating Systems

UNIT I OPERATING SYSTEMS OVERVIEW

CSCI-375 Operating Systems

Chapter 1: Introduction

Lecture 2 - Fundamental Concepts

Operating Systemss and Multicore Programming (1DT089)

ECE397A Operating Systems. Chapter 1: Introduction

Following are a few basic questions that cover the essentials of OS:

Module 1: Introduction

Module 1: Introduction. What is an Operating System?

Chapter 2 Computer-System Structure

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

Roadmap. Tevfik Koşar. CSE 421/521 - Operating Systems Fall Lecture - II OS Structures. University at Buffalo. OS Design and Implementation

Introduction CHAPTER. Exercises

OS Design Approaches. Roadmap. System Calls. Tevfik Koşar. Operating System Design and Implementation. CSE 421/521 - Operating Systems Fall 2013

CSC 453 Operating Systems

5.b Principles of I/O Hardware CPU-I/O communication

Sri Vidya College of Engineering and Technology Department of Computer Science & Engineering II CSE / II IT

Basic Computer Hardware

Chapter-1: Exercise Solution

Memory Management. CSE 2431: Introduction to Operating Systems Reading: , [OSC]

Computer Systems Overview

ROEVER ENGINEERING COLLEGE, PERAMBALUR DEPARTMENT OF INFORMATION TECHNOLOGY OPERATING SYSTEMS QUESTION BANK UNIT-I

Module 1 Introduction/OS Overview

CSC Operating Systems Fall Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. August 27 th, 2009.

Chapter 1 Computer System Overview

Announcements. Computer System Organization. Roadmap. Major OS Components. Processes. Tevfik Ko!ar. CSC Operating Systems Fall 2009

Computer System Architecture. CMPT 300 Operating Systems I. Summer Segment 3: Computer System Architecture. Melissa O Neill

Transcription:

Chapter 1: Introduction,

Administrivia Reading: Chapter 1. Next time: Continued Grand Tour. 1.2

Outline Common computer system devices. Parallelism within an operating system. Interrupts. Storage operation, hierarchy, and caching. Types of multiprocessor systems. Multiprogramming. Kernel and user modes. 1.3

Computer System Organization Computer system operation One or more CPUs, device controllers connect through common bus providing access to shared memory Concurrent execution of CPUs and devices competing for memory cycles 1.4

Computer-System Operation I/O devices and the CPU can execute concurrently Each device controller is in charge of a particular device type Each device controller has a local buffer CPU moves data from/to main memory to/from local buffers I/O is from the device to local buffer of controller Device controller informs CPU that it has finished its operation by causing an interrupt 1.5

Common Functions of Interrupts Interrupt transfers control to the interrupt service routine generally, through the interrupt vector, which contains the addresses of all the service routines Interrupt architecture must save the address of the interrupted instruction Incoming interrupts are disabled while another interrupt is being processed to prevent a lost interrupt A trap is a software generated interrupt caused either by an error or a user request An operating system is interrupt driven 1.6

Interrupt Handling The operating system preserves the state of the CPU by storing registers and the program counter Determines which type of interrupt has occurred: polling vectored interrupt system Separate segments of code determine what action should be taken for each type of interrupt 1.7

Interrupt Timeline 1.8

I/O Structure After I/O starts, control returns to user program only upon I/O completion Wait instruction idles the CPU until the next interrupt Wait loop (contention for memory access) At most one I/O request is outstanding at a time, no simultaneous I/O processing After I/O starts, control returns to user program without waiting for I/O completion System call request to the operating system to allow user to wait for I/O completion Device status table contains entry for each I/O device indicating its type, address, and state Operating system indexes into I/O device table to determine device status and to modify table entry to include interrupt 1.9

Direct Memory Access Structure Used for high speed I/O devices able to transmit information at close to memory speeds Device controller transfers blocks of data from buffer storage directly to main memory without CPU intervention Only one interrupt is generated per block, rather than the one interrupt per byte 1.10

Storage Structure Main memory only large storage media that the CPU can access directly Secondary storage extension of main memory that provides large nonvolatile storage capacity Magnetic disks rigid metal or glass platters covered with magnetic recording material Disk surface is logically divided into tracks, which are subdivided into sectors The disk controller determines the logical interaction between the device and the computer 1.11

Storage Hierarchy Storage systems organized in hierarchy Speed Cost Volatility Caching copying information into faster storage system; main memory can be viewed as a last cache for secondary storage 1.12

Storage-Device Hierarchy 1.13

Caching Important principle, performed at many levels in a computer (in hardware, operating system, software) Information in use copied from slower to faster storage temporarily Faster storage (cache) checked first to determine if information is there If it is, information used directly from the cache (fast) If not, data copied to cache and used there Cache smaller than storage being cached Cache management important design problem Cache size and replacement policy 1.14

Computer-System Architecture Most systems use a single general purpose processor (PDAs through mainframes) Most systems have special purpose processors as well Multiprocessors systems growing in use and importance Also known as parallel systems, tightly coupled systems Advantages include 4 Increased throughput 4 Economy of scale 4 Increased reliability graceful degradation or fault tolerance Two types 1. Asymmetric Multiprocessing 2. Symmetric Multiprocessing 1.15

How a Modern Computer Works 1.16

Symmetric Multiprocessing Architecture 1.17

A Dual-Core Design 1.18

Clustered Systems Like multiprocessor systems, but multiple systems working together Usually sharing storage via a storage area network (SAN) Provides a high availability service which survives failures Asymmetric clustering has one machine in hot standby mode Symmetric clustering has multiple nodes running applications, monitoring each other Some clusters are for high performance computing (HPC) Applications must be written to use parallelization 1.19

Operating System Structure Multiprogramming needed for efficiency Single user cannot keep CPU and I/O devices busy at all times Multiprogramming organizes jobs (code and data) so CPU always has one to execute A subset of total jobs in system is kept in memory One job selected and run via job scheduling When it has to wait (for I/O for example), OS switches to another job Timesharing (multitasking) is logical extension in which CPU switches jobs so frequently that users can interact with each job while it is running, creating interactive computing Response time should be < 1 second Each user has at least one program executing in memory process If several jobs ready to run at the same time CPU scheduling If processes don t fit in memory, swapping moves them in and out to run Virtual memory allows execution of processes not completely in memory 1.20

Memory Layout for Multiprogrammed System 1.21

Operating-System Operations Interrupt driven by hardware Software error or request creates exception or trap Division by zero, request for operating system service Other process problems include infinite loop, processes modifying each other or the operating system Dual mode operation allows OS to protect itself and other system components User mode and kernel mode Mode bit provided by hardware Provides ability to distinguish when system is running user code or kernel code Some instructions designated as privileged, only executable in kernel mode System call changes mode to kernel, return from call resets it to user 1.22

Transition from User to Kernel Mode Timer to prevent infinite loop / process hogging resources Set interrupt after specific period Operating system decrements counter When counter zero generate an interrupt Set up before scheduling process to regain control or terminate program that exceeds allotted time 1.23