OPERATING SYSTEM OVERVIEW

Similar documents
Operating-System Structures

Chapter 3: Operating-System Structures

OS and Computer Architecture. Chapter 3: Operating-System Structures. Common System Components. Process Management

Last class: OS and Architecture. OS and Computer Architecture

Last class: OS and Architecture. Chapter 3: Operating-System Structures. OS and Computer Architecture. Common System Components

Module 3: Operating-System Structures

Operating-System Structures

Operating System Services

Module 3: Operating-System Structures. Common System Components

Chapter 3: Operating-System Structures

Operating System Review

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

Chapter 3: Operating-System Structures

CS30002: Operating Systems. Arobinda Gupta Spring 2017

Introduction to Operating Systems (Part II)

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

OPERATING SYSTEMS UNIT - 1

Operating- System Structures

CS370 Operating Systems

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

EECS 3221 Operating System Fundamentals

EECS 3221 Operating System Fundamentals

CS 471 Operating Systems. Yue Cheng. George Mason University Fall 2017

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

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

ELEC 377 Operating Systems. Week 1 Class 2

Device-Functionality Progression

Chapter 12: I/O Systems. I/O Hardware

CS370 Operating Systems

CSC 453 Operating Systems

Chapter 1: Introduction

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

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

Lecture 1 Introduction (Chapter 1 of Textbook)

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

Lecture 2 - Fundamental Concepts

Computer architecture. A simplified model

Module 12: I/O Systems

Operating Systems 2010/2011

Chapter 1: Introduction. Chapter 1: Introduction

OPERATING SYSTEMS OVERVIEW

Chapter 13: I/O Systems

CS420: Operating Systems

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

Chapter 1: Introduction

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

CS420: Operating Systems

European University of Lefke. Instructor: Dr. Arif SARI

Operating Systems. studykorner.org

CSE 410. Operating Systems

The control of I/O devices is a major concern for OS designers

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)

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

Chapter 1: Introduction

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

Unit 2 : Computer and Operating System Structure

OPERATING SYSTEMS: Lesson 1: Introduction to Operating Systems

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

TDDI04, K. Arvidsson, IDA, Linköpings universitet Operating System Structures. Operating System Structures Overview. Operating System Services

I/O SYSTEMS. Sunu Wibirama

Module 1. Introduction:

Module 12: I/O Systems

UNIT 2. OPERATING SYSTEM STRUCTURES

Protection. OS central role. Fundamental to other OS goals. OS kernel. isolation of misbehaving applications. Relaibility Security Privacy fairness

I/O Systems. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

Chapter 2: Operating-System Structures

3. Process Management in xv6

The Kernel Abstraction

OS structure. Process management. Major OS components. CSE 451: Operating Systems Spring Module 3 Operating System Components and Structure

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

Operating Systems CS 217. Provides each process with a virtual machine. Promises each program the illusion of having whole machine to itself

Chapter 2: Operating-System Structures. Chapter 2: Operating-System Structures. Objectives. Operating System Services

Today: I/O Systems. Architecture of I/O Systems

Objectives. Chapter 2: Operating-System Structures. 2.1 Operating System Services

Concurrent programming: Introduction I

Lecture 15: I/O Devices & Drivers

DM510 Operating Systems. Jacob Aae Mikkelsen

OS lpr. www. nfsd gcc emacs ls 1/27/09. Process Management. CS 537 Lecture 3: Processes. Example OS in operation. Why Processes? Simplicity + Speed

Q.1 Explain Computer s Basic Elements

CS420: Operating Systems. Kernel I/O Subsystem

Chapter 13: I/O Systems

Lecture 2 Operating System Structures (chapter 2)

Lecture 4: Mechanism of process execution. Mythili Vutukuru IIT Bombay

Chapter 13: I/O Systems

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

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

Input-Output (I/O) Input - Output. I/O Devices. I/O Devices. I/O Devices. I/O Devices. operating system must control all I/O devices.

CS420: Operating Systems. OS Services & System Calls

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

The Kernel Abstraction. Chapter 2 OSPP Part I

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

Comp 204: Computer Systems and Their Implementation. Lecture 18: Devices

OS lpr. www. nfsd gcc emacs ls 9/18/11. Process Management. CS 537 Lecture 4: Processes. The Process. Why Processes? Simplicity + Speed

Process Description and Control

Often, more information is required when designing system call Information varies according to OS and types of system call

Chapter 2: System Structures

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

THE PROCESS ABSTRACTION. CS124 Operating Systems Winter , Lecture 7

CS399 New Beginnings. Jonathan Walpole

Transcription:

OPERATING SYSTEM OVERVIEW Contents Basic hardware elements Interrupts Most I/O devices are much slower than the processor Active waiting cycle (polling) Interrupt request signal Interrupt mechanism An interrupt cycle is added to the instruction cycle (fecth and execute). The processor checks to see if an interrupt has occured (interrupt signal) 1

Interrupt mechanism interrupt vector interrupt handler Interrupt processing CPU saves PS and PC (push) into the control stack CPU loads into PC and PS the corresponding values from the interrupt vector Interrupt processing interrupt handler execution iret Interrupt mechanism Interrupt enable/disable bit (PS register) STI (Set Interrupt) CLI (Clear Interrupt) Hardware priority 2

Interrupt processing inth prog 1OO 149 15O iret 1OOO 12OO 12O1 main memory 2 1 interrupt i main memory 1OO i+1 PS inth interrupt vector 3 Interrupt processing PS PC SP PS prog 12O1 39OO main memory stack CPU completes execution of the current instruction Interrupt processing Interrupt processing main memory main memory PS PC SP PS inth 1OO 3822 3822 3823 39OO PS prog 12O1 stack PS PC SP PS inth 151 3822 3822 3823 39OO PS prog 12O1 stack interrupt signal has been accepted iret execution 3

Interrupt processing PS PS prog PC 12O1 39OO main memory stack Contents O.S.Components SP iret completed O.S. COMPONENTS Process Management Main-Memory Management Secondary-Memory Management O.S. COMPONENTS I/O-System Management File Management 4

Process management Creating and deleting processes Suspending and resuming processes Provide mechanisms for process interaction Main memory management Keeping track of which parts of memory are currently being used and by whom Main memory management Deciding which processes are to be loaded when memory becomes available Main memory management Allocating and deallocating memory space as needed 5

Secondary memory management Free space management Storage allocation Disk scheduling I/O SYSTEM MANAGEMENT The I/O subsystem consists of A memory-management component that includes buffering and spooling I/O SYSTEM MANAGEMENT The I/O subsystem consists of A general device driver interface Drivers for specific hardware devices File management Creating and deleting files and directories Supporting primitives for manipulating file and directory 6

File management Mapping files onto storage Backing up files on stable storage media Protection systems Mechanism for controlling the access of processes to system resources Protection systems The mechanism must provide means for specifying the controls to be imposed and means for enforcement Comand-Interpreter System The interface between users and O.S. A program that reads and interpretes control statements 7

Comand-Interpreter System Its main function: to get next command statement and execute it (shell) Contents System calls System Calls Processes communicate with the O.S. and request services to it by making system calls System Calls System calls provide the interface between any process and O.S. 8

Examples of System Call Process control File manipulation Device manipulation Information management Communications Corresponding to each system call there is a library procedure Example: read system call register x C program x call parameters 1 count= read (file, buffer, nbytes) load x INT system call READ count returns the number of bytes actually read system call READ 2 Library read procedure return from INT 3 operating system 9

The library procedure Puts the parameters of the system call in machine registers Issues a INT instruction to start the O.S. The control is returned to the caller by returning the status code as a result Methods to pass parameters to operating system directly via registers in a memory block whose address is passed as a parameter in a registry into the stack (push, pop) user int. library interface system call interf. users utility programs (shell, compiler, ) standard library (open, close, read, write,..) UNIX O.S. (process management, memory management, file system, I/O,...) hardware (CPU, memory, disks, terminals, ) user mode kernel mode Dual mode of operations user mode Used for normal execution of user programs Hardware control does not allow the execution of privileged instructions 10

Dual mode of operations supervisor mode (kernel mode) Used for the execution of O.S. functions as required by system calls All instructions can be executed 11