Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 1 Copyright ©2005 Overview of Operating Systems Chapters 1 and.

Slides:



Advertisements
Similar presentations
Computer-System Structures Er.Harsimran Singh
Advertisements

WHAT IS AN OPERATING SYSTEM? An interface between users and hardware - an environment "architecture ” Allows convenient usage; hides the tedious stuff.
Computer System Overview
Input-output and Communication Prof. Sin-Min Lee Department of Computer Science.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
1 Computer System Overview OS-1 Course AA
1 CSIT431 Introduction to Operating Systems Welcome to CSIT431 Introduction to Operating Systems In this course we learn about the design and structure.
OS Spring’03 Introduction Operating Systems Spring 2003.
Figure 1.1 Interaction between applications and the operating system.
Computer System Structures memory memory controller disk controller disk controller printer controller printer controller tape-drive controller tape-drive.
Chapter 1 and 2 Computer System and Operating System Overview
Operating Systems Béat Hirsbrunner Main Reference: William Stallings, Operating Systems: Internals and Design Principles, 6 th Edition, Prentice Hall 2009.
Chapter 7 Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats.
Computer System Overview Chapter 1. Basic computer structure CPU Memory memory bus I/O bus diskNet interface.
Chapter 3 Overview of Operating Systems Copyright © 2008.
1/21/2010CSCI 315 Operating Systems Design1 Computer System Structures Notice: The slides for this lecture have been largely based on those accompanying.
OS and the Computer System  Some OS programs exist permanently in the system area of the memory to monitor and control activities in the computer system.
1 What is an operating system? CSC330Patricia Van Hise.
COMPUTER SYSTEMS An Integrated Approach to Architecture and Operating Systems Chapter 14 Epilogue: A Look Back at the Journey ©Copyright 2008 Umakishore.
Chapter 2 The OS, the Computer, and User Programs Copyright © 2008.
General System Architecture and I/O.  I/O devices and the CPU can execute concurrently.  Each device controller is in charge of a particular device.
Chapter 3 Process Description and Control Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach, 2 ed Slide No: 1 Copyright © 2008 Introduction Chapter 1.
Chapter 1. Introduction What is an Operating System? Mainframe Systems
Operating System Review September 10, 2012Introduction to Computer Security ©2004 Matt Bishop Slide #1-1.
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
Chapter 3 Process Description and Control Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Computer System Overview Chapter 1. Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users.
Input/ Output By Mohit Sehgal. What is Input/Output of a Computer? Connection with Machine Every machine has I/O (Like a function) In computing, input/output,
2.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 2: Computer-System Structures Computer System Operation I/O Structure.
CHAPTER 2: COMPUTER-SYSTEM STRUCTURES Computer system operation Computer system operation I/O structure I/O structure Storage structure Storage structure.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 2: Computer-System Structures Computer System Operation I/O Structure.
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
1 Chapter 2: Computer-System Structures  Computer System Operation  I/O Structure  Storage Structure  Storage Hierarchy  Hardware Protection  General.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 1: Introduction What Operating Systems Do Computer-System.
Modes of transfer in computer
Operating System Structure A key concept of operating systems is multiprogramming. –Goal of multiprogramming is to efficiently utilize all of the computing.
1: Operating Systems Overview 1 Jerry Breecher Fall, 2004 CLARK UNIVERSITY CS215 OPERATING SYSTEMS OVERVIEW.
We will focus on operating system concepts What does it do? How is it implemented? Apply to Windows, Linux, Unix, Solaris, Mac OS X. Will discuss differences.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 2 Computer-System Structures Slide 1 Chapter 2 Computer-System Structures.
Silberschatz, Galvin and Gagne  Applied Operating System Concepts Chapter 2: Computer-System Structures Computer System Architecture and Operation.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Lecture 1: Review of Computer Organization
1 Lecture 1: Computer System Structures We go over the aspects of computer architecture relevant to OS design  overview  input and output (I/O) organization.
Computer and Operating Systems
Process Description and control G.Anuradha (Referred from william stallings and galvin 8 th edition)
Processor Memory Processor-memory bus I/O Device Bus Adapter I/O Device I/O Device Bus Adapter I/O Device I/O Device Expansion bus I/O Bus.
OSes: 2. Structs 1 Operating Systems v Objective –to give a (selective) overview of computer system architectures Certificate Program in Software Development.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
1 Overview Computer System/Operating System Overview.
CSCE451/851 Introduction to Operating Systems
Operating Systems Lecture 2.
Chapter 2: Computer-System Structures(Hardware)
Applied Operating System Concepts
Chapter 2: Computer-System Structures
Computer System Overview
Computer-System Architecture
Module 2: Computer-System Structures
CGS 3763 Operating Systems Concepts Spring 2013
Operating Systems Lecture 2.
Computer Architecture and Assembly Language
Module 2: Computer-System Structures
Computer System Overview
Computer System Structures
Chapter 2: Computer-System Structures
Chapter 2: Computer-System Structures
Module 2: Computer-System Structures
Module 2: Computer-System Structures
Chapter 1: Introduction CSS503 Systems Programming
Presentation transcript:

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 1 Copyright ©2005 Overview of Operating Systems Chapters 1 and 2

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 2 Copyright ©2005 Introduction Twin aims of an operating system are: –User convenience –System performance * Performance measures depend on the computing environment * Number of requests serviced per unit time, etc

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 3 Copyright ©2005 Introduction Fundamental tasks of an OS - Management of Programs * Organize their execution by sharing the CPU * Ensure good user service and efficient use - Management of Resources * Efficient allocation/de-allocation without constraining user programs - Security and Protection * Ensure absence of interference with programs and resources by entities within and outside the OS

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 4 Copyright ©2005 Overview of security and protection threats

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 5 Copyright ©2005 OS and the Computer System In this module, we study - Fundamental features of computer systems that are important to an OS * Memory hierarchy * Interrupt structure * I/O organization - Fundamentals of how a program interacts with an OS

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 6 Copyright ©2005 Memory utilization during operation of an OS

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 7 Copyright ©2005 Model of a Computer System

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 8 Copyright ©2005 Fields of Program Status Word (PSW)

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 9 Copyright ©2005 (a) Program (b) State of CPU after executing COMPARE instruction

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 10 Copyright ©2005 Memory hierarchy containing cache, main memory and disk

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 11 Copyright ©2005 Memory hierarchy Cache memory * Organization – Cache block or cache line -- Inclusive or exclusive -- Direct, fully associative, set associative * Different levels of caches – Why? How many levels? * Cache hit ratio – What factors influence it? Main memory * Memory protection * Virtual memory?

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 12 Copyright ©2005 Memory protection using bound registers

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 13 Copyright ©2005 A schematic of virtual memory operation

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 14 Copyright ©2005 Input/Output organization Involvement of the CPU in I/O operations -- Should be the minimum possible due to imbalance between CPU and I/O speeds -- CPU should be free to execute instructions while I/O operations are in progress Different I/O modes -- Programmed I/O -- Interrupt I/O -- Direct memory access (DMA)

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 15 Copyright ©2005 Input Output Modes

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 16 Copyright ©2005 Interrupts An interrupt signals the occurrence of an event to the CPU The CPU is diverted to execution of an OS routine Different classes of interrupts convey occurrence of different kinds of events

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 17 Copyright ©2005 Classes of Interrupts

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 18 Copyright ©2005 The interrupt action

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 19 Copyright ©2005 Steps in interrupt action

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 20 Copyright ©2005 An operating system in its computing environment

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 21 Copyright ©2005 Interrupt driven operation of a kernel

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 22 Copyright ©2005 System Call A system call is a request made by a program through a special instruction called a `software interrupt’ instruction The software interrupt is a program interrupt When a software interrupt occurs, the interrupt hardware transfers control to a routine of the OS The operand of the software interrupt instruction indicates what kind of request is being made by a program

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 23 Copyright ©2005 System Calls

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 24 Copyright ©2005 Interrupt processing and scheduling

Chapter 1: IntroductionDhamdhere: Operating Systems— A Concept-Based Approach Slide No: 25 Copyright ©2005 Simple and nested interrupt processing