CS 345 Computer System Overview

Slides:



Advertisements
Similar presentations
Chapter 2 Operating System Overview Operating Systems: Internals and Design Principles, 6/E William Stallings.
Advertisements

Lecture 11: Operating System Services. What is an Operating System? An operating system is an event driven program which acts as an interface between.
Maninder Kaur OPERATING SYSTEM Maninder Kaur 11 Oct 2010.
SYSC3001 Operating Systems and Data Bases
Introduction CSCI 444/544 Operating Systems Fall 2008.
1 Operating Systems Overview Chapter 2. 2 Operating System n Is a program that controls the execution of application programs u OS must relinquish control.
Lecture 1: History of Operating System
Operating System (O.S.) Objectives & Functions
W4118 Operating Systems OS Overview Junfeng Yang.
Chapter 8 Operating System Support
Chapter 1 and 2 Computer System and Operating System Overview
Operating Systems.
Chapter 1 and 2 Computer System and Operating System Overview
University of Pennsylvania 9/7/00CSE 3801 CSE 380 Introduction to Operating Systems Insup Lee Fall 00.
Operating System Objectives & Functions An operating system is a program that controls the execution of application programs and acts as an interface between.
Silberschatz, Galvin and Gagne  Operating System Concepts Bare Machine (early 1950s) Structure  Large machines run from console  Single user.
A. Frank - P. Weisberg Operating Systems Evolution of Operating Systems.
By Mr. Abdalla A. Shaame.  An operating system is a software component that acts as the core of a computer system.  It performs various functions and.
Chapter 2 Operating System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Chapter 2 Operating System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Operating System Overview
Operating System A program that controls the execution of application programs An interface between applications and hardware 1.
Operating System Overview Dr. Sunny Jeong & Mr. M.H. Park Operating Systems: Internals and Design Principles, 6/E William Stallings.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: System Structures.
CHAPTER 2 OPERATING SYSTEM OVERVIEW 1. Operating System Operating System Definition A program that controls the execution of application programs and.
Chapter 2 Operating System Overview Operating Systems: Internals and Design Principles, 6/E William Stallings.
part I, , Part I Introduction to Operating Systems First Semester, Year 2000 Wannarat Suntiamorntut Department of Computer Engineering,
Introduction and Overview Questions answered in this lecture: What is an operating system? How have operating systems evolved? Why study operating systems?
Chapter 1. Introduction What is an Operating System? Mainframe Systems
 What is an operating system? What is an operating system?  Where does the OS fit in? Where does the OS fit in?  Services provided by an OS Services.
 What is OS? What is OS?  What OS does? What OS does?  Structure of Operating System: Structure of Operating System:  Evolution of OS Evolution of.
Operating Systems.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 1 Introduction Read:
Composition and Evolution of Operating Systems Introduction to Operating Systems: Module 2.
Fall 2000M.B. Ibáñez Lecture 01 Introduction What is an Operating System? The Evolution of Operating Systems Course Outline.
Chapter 5 Operating System Support. Outline Operating system - Objective and function - types of OS Scheduling - Long term scheduling - Medium term scheduling.
◦ What is an Operating System? What is an Operating System? ◦ Operating System Objectives Operating System Objectives ◦ Services Provided by the Operating.
Operating Systems David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 432.
Silberschatz and Galvin  Operating System Concepts Module 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming.
1 Operating System Overview Chapter 2. 2 Operating System A program that controls the execution of application programs An interface between applications.
Chapter 2 Operating System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
O PERATING S YSTEM. What is an Operating System? An operating system is an event driven program which acts as an interface between a user of a computer,
CIS250 OPERATING SYSTEMS Chapter One Introduction.
CS 345 Computer System Overview
Faculty of Sciences and Social Sciences HOPE Chapter 2 Operating System Overview Stewart Blakeway FML
Operating Systems.
Silberschatz and Galvin  Operating System Concepts Module 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming.
1.1 Sandeep TayalCSE Department MAIT 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming Batched Systems Time-Sharing Systems.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
1 Operating System Overview Chapter 2. 2 Operating System A program that controls the execution of application programs An interface between applications.
Midterm OPERATING SYSTEM. Objectives At the end of the course, the student should be able to: Define the operating system; Demonstrate the abstract view.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview: Using Hardware.
Copyright Prentice Hall, Inc. 1 Operating System Overview.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 0: Historical Overview.
Chapter 2 Operating System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
1 OPERATING SYSTEMS. 2 CONTENTS 1.What is an Operating System? 2.OS Functions 3.OS Services 4.Structure of OS 5.Evolution of OS.
Applied Operating System Concepts
Operating System Overview
Evolution of Operating Systems
Introduction to Operating System (OS)
Chapter 1: Introduction
חוברת שקפים להרצאות של ד"ר יאיר ויסמן מבוססת על אתר האינטרנט:
Operating System Concepts
Chapter 2 Operating System Overview
Chapter-1 Computer is an advanced electronic device that takes raw data as an input from the user and processes it under the control of a set of instructions.
Operating System Overview
Chapter 2 Operating System Overview
Operating System Concepts
Presentation transcript:

CS 345 Computer System Overview Chapter 2 Alex Milenkovich

Topics to Cover… OS Objectives OS Services Resource Manager Evolution Achievements Processes Memory management Information protection and security Scheduling and resource management System architecture Virtual Machines BYU CS 345 Chapter 2: OS Overview

What are the Objectives of an OS? Convenience Make the computer more convenient to use Efficiency Efficient use of computer system resources Ability to evolve Permit effective development, testing, and introduction of new system functions without interfering with service BYU CS 345 Chapter 2: OS Overview

What Services does an OS provide? Program development Editors, debuggers, frameworks Program execution Initialization, scheduling Access to I/O devices Uniform interface, hides details Controlled access to files Authorization, sharing, caching System access Protection, authorization, resolve conflicts BYU CS 345 Chapter 2: OS Overview

OS Services Error detection and response Accounting Hardware errors: memory error or device failure Software errors: arithmetic errors, access forbidden memory locations, allocation errors Accounting collect statistics (billing) monitor performance used to anticipate future enhancements Operating systems are among the most complex pieces of software ever developed... BYU CS 345 Chapter 2: OS Overview

What Resources need management? Resource Management What Resources need management? Memory Cache Virtual Secondary Peripherals Computer programs User programs Shared libraries Concurrency / Synchronization CPU cores BYU CS 345 Chapter 2: OS Overview

Evolution of Operating Systems New types of hardware and hardware upgrades Character vs. graphic terminals Introduction of paging hardware Development of new services and needs Must offer new services, e.g., internet support Fixes to OS faults Serial Processing Batch Processing Multi-programmed Systems Time-Sharing Systems Personal Computing Distributed Processing Systems ???? BYU CS 345 Chapter 2: OS Overview

Evolution of Operating Systems Early Systems (1950) Simple Batch Systems (1960) Multiprogrammed Batch Systems (1970) Time-Sharing and Real-Time Systems (1970) Personal/Desktop Computers (1980) Multiprocessor Systems (1980) Networked/Distributed Systems (1980) Web-based Systems (1990) Virtualization … BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 8

Early Systems Structure Single user system. Programmer/User as operator (Open Shop). Large machines run from console. Paper Tape or Punched cards. BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 9

Early Computer System Early Systems BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 10

Characteristics of Early Systems Early software: Assemblers, Libraries of common subroutines (I/O, Floating-point), Device Drivers, Compilers, Linkers. Need significant amount of setup time. Extremely slow I/O devices. Very low CPU utilization. But computer was very secure. BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 11

Simple Batch Systems Use of high-level languages, magnetic tapes. Jobs are batched together by type of languages. An operator was hired to perform the repetitive tasks of loading jobs, starting the computer, and collecting the output (Operator-driven Shop). It was not feasible for users to inspect memory or patch programs directly. BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 12

Operator-driven Shop Batch Systems BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 13

Batch Systems Simple Batch Systems The user submits a job (written on cards or tape) to a computer operator. The computer operator place a batch of several jobs on an input device. A special program called the monitor, manages the execution of each program in the batch. “Resident monitor” is always in main memory and available for execution. Monitor utilities are loaded when needed. Reduce setup time by batching similar jobs. Alternate execution between user program and the monitor program. Use Automatic Job Sequencing – automatically transfer control from one job when it finishes to another one. Rely on available hardware to effectively alternate execution from various parts of memory. BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 14

Batch Systems Control Cards Special cards that tell the monitor which programs to run: $JOB $FTN $RUN $DATA $END Special characters distinguish control cards from data or program cards: $ in column 1 // in column 1 and 2 709 in column1 BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 15

Batch Systems What is JCL? Job Control language is the language that provides instructions to the monitor: what compiler to use what data to use Example of job format: ------->> $FTN loads the compiler and transfers control to it. $LOAD loads the object code (in place of compiler). $RUN transfers control to user program. $JOB $FTN ... FORTRAN program $LOAD $RUN Data $END BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 16

Card Deck of a Job Batch Systems BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 17

What H/W Advancements? Memory protection Privileged instructions Hardware Advancements What H/W Advancements? Memory protection do not allow the memory area containing the monitor to be altered by a user program. Privileged instructions can be executed only by the resident monitor. A trap occurs if a program tries these instructions. Interrupts provide flexibility for relinquishing control to and regaining control from user programs. Timer interrupts prevent a job from monopolizing the system. BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 18

Offline Operation Problem: Hardware Advancements Offline Operation Problem: Card Reader slow, Printer slow (compared to Tape). I/O and CPU could not overlap. Solution: Offline Operation (Satellite Computers) Speed up computation by loading jobs into memory from tapes while card reading and line printing is done off-line using smaller machines. BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 19

Spooling Problem: Solution: Spooling - Hardware Advancements Spooling Problem: Card reader, Line printer and Tape drives slow I/O and CPU could not overlap. Solution: Spooling - Overlap I/O of one job with the computation of another job (using double buffering, DMA, etc). Technique is called SPOOLing: Simultaneous Peripheral Operation On Line. BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 20

Uniprogramming Uniprogramming I/O operations are exceedingly slow (compared to instruction execution). A program containing even a very small number of I/O operations, will spend most of its time waiting for them. Hence: poor CPU usage when only one program is present in memory. BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 21

Batch Multiprogramming Several jobs are kept in main memory at the same time, and the CPU is multiplexed among them. BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 22

Multiprogramming Multiprogramming Allows the processor to execute another program while one program must wait for an I/O device. BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 23

Multiprogramming Why Multiprogramming? 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, OS switches to another job. BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 24

Multiprogramming Requirements Hardware support: I/O interrupts and DMA controllers in order to execute instructions while I/O device is busy. Timer interrupts for CPU to gain control. Memory management several ready-to-run jobs must be kept in memory. Memory protection (data and programs). Software support from the OS: For scheduling (which program is to be run next). To manage resource contention. BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 25

What is a Virtual Machine? Virtualization technology enables a single PC or server to simultaneously run multiple operating systems on a single platform. The host OS can support many virtual machines, each with characteristics of a particular OS. BYU CS 345 Chapter 2: OS Overview Alex Milenkovich 26

Modern OS Architecture System Architecture Modern OS Architecture BYU CS 345 Chapter 2: OS Overview

Desktop Market Share BYU CS 345 Chapter 2: OS Overview January 1, 2012

BYU CS 345 Chapter 2: OS Overview

Desktop Market Share BYU CS 345 Chapter 2: OS Overview