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

Similar documents
CS420: Operating Systems

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

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

CS420: Operating Systems

Chapter 1: Introduction

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

Chapter 1: Introduction. Chapter 1: Introduction

CS370 Operating Systems

Chapter 1: Introduction

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

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

CS370 Operating Systems

European University of Lefke. Instructor: Dr. Arif SARI

Operating System Services

Chapter 1: Introduction

CS3600 SYSTEMS AND NETWORKS

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

Introduction to Operating Systems

DM510 Operating Systems. Jacob Aae Mikkelsen

Four Components of a Computer System

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

Lecture 1 Introduction (Chapter 1 of Textbook)

OPERATING SYSTEMS: Lesson 1: Introduction to Operating Systems

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

Processes and More. CSCI 315 Operating Systems Design Department of Computer Science

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

Operating Systemss and Multicore Programming (1DT089)

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

COURSE OVERVIEW & OPERATING SYSTEMS CONCEPT Operating Systems Design Euiseong Seo

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

Lecture 1 - Operating System Overview

Introduction to Operating Systems (Part II)

Operating System Concepts 9 th Edit9on

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

CSE Opera+ng System Principles

Operating Systems Spring 2013, Ort Braude College Electrical Engineering Department

Roadmap. Tevfik Ko!ar. CSC Operating Systems Fall Lecture - VII CPU Scheduling - II. Louisiana State University

Roadmap. Multilevel Queue Scheduling. Multilevel Queue. Example of Multilevel Feedback Queue. Multilevel Feedback Queue. Tevfik Ko!

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

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

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

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

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

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

Chapter 2: Operating-System Structures. Operating System Concepts 8 th Edition

Introduction. Chapter Prof. Amr El-Kadi

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

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

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

Chapter 3: Processes. Operating System Concepts 8 th Edition,

Principles of Operating Systems CS 446/646

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

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

Common Computer-System and OS Structures

Chapter 13: I/O Systems

Chapter 3: Processes

Chapter 3: Processes. Operating System Concepts 9 th Edit9on

The Lesson Plan of OS. The syllabus of OS. Access the lesson plan and syllabus at

Introduction. Chapter Prof. Amr El-Kadi

Inf2C - Computer Systems Lecture 16 Exceptions and Processor Management

Chapter 9: Virtual Memory. Operating System Concepts 9 th Edition

Operating Systems Overview. Chapter 2

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

Page Replacement Algorithms

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

HIGH PERFORMANCE COMPUTING: MODELS, METHODS, & MEANS OPERATING SYSTEMS 1

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

CSC Operating Systems Spring Lecture - XII Midterm Review. Tevfik Ko!ar. Louisiana State University. March 4 th, 2008.

Chapter 9: Virtual-Memory

Module 1: Introduction. What is an Operating System?

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

Operating System. Operating System Overview. Structure of a Computer System. Structure of a Computer System. Structure of a Computer System

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

OPERATING SYSTEMS. COMS W1001 Introduction to Information Science. Boyi Xie

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

Chapter 3: Processes. Operating System Concepts Essentials 2 nd Edition

Processes. CS 475, Spring 2018 Concurrent & Distributed Systems

Processes and Threads

Operating Systems. Overview. Dr Alun Moon. Computing, Engineering and Information Sciences. 27th September 2011

Computer-System Structures

Chapter 13: I/O Systems

Part V. Process Management. Sadeghi, Cubaleska RUB Course Operating System Security Memory Management and Protection

EECS 3221 Operating System Fundamentals

EECS 3221 Operating System Fundamentals

Chapter 12: I/O Systems

Chapter 13: I/O Systems

Chapter 12: I/O Systems. Operating System Concepts Essentials 8 th Edition

Computer Systems II. First Two Major Computer System Evolution Steps

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

Chapter 13: I/O Systems

Chapter 13: I/O Systems. Chapter 13: I/O Systems. Objectives. I/O Hardware. A Typical PC Bus Structure. Device I/O Port Locations on PCs (partial)

Computer-System Architecture

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

Virtual Memory. Virtual Memory. Demand Paging. valid-invalid bit. Virtual Memory Larger than Physical Memory

Chapter 9: Virtual Memory

Chapter 3: Process-Concept. Operating System Concepts 8 th Edition,

Chapter 3: Process Concept

Threads. CSE 410, Spring 2004 Computer Systems.

Transcription:

Introduction

Four Components of a Computer System 1.2 Silberschatz, Galvin and Gagne 2005

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.3 Silberschatz, Galvin and Gagne 2005

Storage-Device Hierarchy 1.4 Silberschatz, Galvin and Gagne 2005

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.5 Silberschatz, Galvin and Gagne 2005

Memory Layout for Multiprogrammed System 1.6 Silberschatz, Galvin and Gagne 2005

Basic idea of Multiprogramming 1.7 Silberschatz, Galvin and Gagne 2005

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.8 Silberschatz, Galvin and Gagne 2005

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.9 Silberschatz, Galvin and Gagne 2005

Transition from User to Kernel Mode 1.10 Silberschatz, Galvin and Gagne 2005

Process Management A process is a program in execution. It is a unit of work within the system. Program is a passive entity, process is an active entity. Process needs resources to accomplish its task CPU, memory, I/O, files Initialization data Process termination requires reclaim of any reusable resources Single-threaded process has one program counter specifying location of next instruction to execute Process executes instructions sequentially, one at a time, until completion Multi-threaded process has one program counter per thread Typically system has many processes, some user, some operating system running concurrently on one or more CPUs Concurrency by multiplexing the CPUs among the processes / threads 1.11 Silberschatz, Galvin and Gagne 2005