CompSci 143A1 1. Introduction 1.1 The Role of Operating Systems - Bridge the “Semantic Gap” between Hardware and Application - Three Views of Operating.

Slides:



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

WHAT IS AN OPERATING SYSTEM? An interface between users and hardware - an environment "architecture ” Allows convenient usage; hides the tedious stuff.
Operating System Structure
CS 345 Computer System Overview
Winter 2005 CMPE 151: Network Administration Lecture 2.
Lecture 1: History of Operating System
1 Introduction Chapter What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4 Computer hardware review 1.5.
1: Operating Systems Overview
OPERATING SYSTEM OVERVIEW
Understanding Operating Systems 1 Overview Introduction Operating System Components Machine Hardware Types of Operating Systems Brief History of Operating.
Operating Systems Concepts Professor Rick Han Department of Computer Science University of Colorado at Boulder.
Operating Systems - Introduction S H Srinivasan
Figure 1.1 Interaction between applications and the operating system.
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
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.
Chapter 2 Introduction to Systems Architecture. Chapter goals Discuss the development of automated computing Describe the general capabilities of a computer.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 Operating System Organization.
Copyright Arshi Khan1 System Programming Instructor Arshi Khan.
Operating System A program that controls the execution of application programs An interface between applications and hardware 1.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: System Structures.
LOGO OPERATING SYSTEM Dalia AL-Dabbagh
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.
Operating System Review September 10, 2012Introduction to Computer Security ©2004 Matt Bishop Slide #1-1.
Operating Systems CS3502 Fall 2014 Dr. Jose M. Garrido
Chapter 6 Operating System Support. This chapter describes how middleware is supported by the operating system facilities at the nodes of a distributed.
OPERATING SYSTEMS PRINCIPLES Instructor: Xiangluo Wang Office: Yifu A404 Office Hours: 16:00-18:00,or.
Operating System It is the interface between user (application programs) and hardware. It is a program that controls the execution of application programs.
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
1 Operating System Overview. 2 Today’s Objectives Explain the main purpose of operating systems and describe milestones of OS evolution Explain fundamental.
Operating Systems Principles Lecture 1: Introduction 主講人:虞台文.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc.
INVITATION TO COMPUTER SCIENCE, JAVA VERSION, THIRD EDITION Chapter 6: An Introduction to System Software and Virtual Machines.
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
Chapter 1: Introduction and History  Where does the operating system fit in a computing system?  What does the operating system achieve?  What are the.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
Silberschatz and Galvin  Operating System Concepts Module 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming.
Processes Introduction to Operating Systems: Module 3.
Operating System Structure A key concept of operating systems is multiprogramming. –Goal of multiprogramming is to efficiently utilize all of the computing.
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.
A. Frank - P. Weisberg Operating Systems Structure of Operating Systems.
Introduction Why are virtual machines interesting?
CS 345 Computer System Overview
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
Chapter 1 Introduction  What is an operating system  History of operating systems  The operating system zoo  Computer hardware review  Operating system.
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.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
CT101: Computing Systems Introduction to Operating Systems.
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.
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Introduction to Operating Systems Concepts
Applied Operating System Concepts
DDC 2223 SYSTEM SOFTWARE DDC2223 SYSTEM SOFTWARE.
Chapter 1: A Tour of Computer Systems
CS490 Windows Internals Quiz 2 09/27/2013.
Lecture 1 Runtime environments.
חוברת שקפים להרצאות של ד"ר יאיר ויסמן מבוססת על אתר האינטרנט:
Operating System Concepts
Operating Systems Lecture 3.
Outline Operating System Organization Operating System Examples
System calls….. C-program->POSIX call
Operating Systems Principles Lecture 1: Introduction
Operating Systems Structure
System Programming By Prof.Naveed Zishan.
Operating System Concepts
Presentation transcript:

CompSci 143A1 1. Introduction 1.1 The Role of Operating Systems - Bridge the “Semantic Gap” between Hardware and Application - Three Views of Operating System 1. Abstraction (addresses complexity) 2. Virtualization (addresses sharing) 3. Resource management (addresses performance) 1.2 Organization of Operating Systems - Structural Organization - The Hardware Interface - The Programming Interface - The User Interface - Runtime Organization 1.3 Operating System Evolution & Concepts Spring, 2013

CompSci 143A2 Single CPU System Figure 1-1 Spring, 2013

CompSci 143A3 Multiprocessor Systems Figure 1-2a Figure 1-2b Spring, 2013

CompSci 143A4 Multicomputer System Figure 1-2c Spring, 2013

CompSci 143A5 PC Hardware Organization Figure 1-7 Spring, 2013

CompSci 143A6 Bridging the Semantic Gap Hardware capabilities are very low level –Arithmetic and logical operators –Comparison of two bit-strings –Branching, reading, and writing bytes User needs to think in terms of problem to be solved –High-level data structures and corresponding operations –Simple, uniform interfaces to subsystems, –Treat programs and data files as single entities Use software to bridge this gap –Language processors (e.g., assemblers, compilers, interpreters). –Editors and text processors, linkers and loaders. –Application programs, utility and service programs. –Operating Systems Spring, 2013

CompSci 143A7 The role of OSs Bridge Hardware/Application Gap –Machine instruction vs. high level operation compiler bridges gap –Linear memory vs. data structures compiler bridges gap –Limited CPU & memory vs. more needed OS bridges gap –Secondary memory devices vs. files OS bridges gap –I/O devices vs. high level I/O commands OS bridges gap Spring, 2013

CompSci 143A8 Three views of OSs OS is an extended machine –Principle of abstraction hides complexity –OS provides high level operations using lower level operations OS is a virtual machine –Principle of virtualization supports sharing –OS provides virtual CPU, memory, devices OS is a resource manager –Balance overall performance with individual needs (response time, deadlines) Spring, 2013

CompSci 143A9 Structural Organization of OSs Monolithic vs. Layered Figure 1-8 Spring, 2013

CompSci 143A10 Organization of OSs Hardware Interface –Applications and OS compiled into machine instructions –Interrupts and Traps allow OS to seize control process management (time-sharing) device management (I/O completion) Spring, 2013

CompSci 143A11 Interrupts vs. Traps Figure 1-9 Spring, 2013

CompSci 143A12 Organization of OSs Hardware interface (continued) –Modes of CPU execution Privileged/Nonprivileged SVC (supervisor call) causes trap Control transferred to OS in privileged mode OS exits privileged mode when returning to user Spring, 2013

CompSci 143A13 Organization of OSs Programming Interface Invoking system services –Library call (nonprivileged) –Kernel call (privileged) Figure 1-8 Spring, 2013

CompSci 143A14 Invoking System Services Figure 1-10 Spring, 2013

CompSci 143A15 Organization of OSs User interface (cf. Fig. 1-8) –Text-based shell (e.g. Unix) command interpreter shell scripts –Graphics-based GUI (e.g. Mac, MS Windows) W indows I cons M enus P ointer Spring, 2013

CompSci 143A16 Organization of OSs Runtime organization –Service is a Subroutine –Service is an Autonomous Process (“client-server”) Figure 1-12 Spring, 2013

CompSci 143A17 OS Evolution and Concepts Early systems –Bootstrapping Batch OSs –I/O processors –Interrupts –Relocatable code (Allows separately compile programs to be combined without recompilation) Multiprogramming Spring, 2013

CompSci 143A18 Multiprogramming Basic problem: –Some programs are compute-bound, some I/O-bound –Even “balanced” programs are balance only over time –No one program can make full use of the system Solution: Multiprogramming –Have more than one active (running) program in memory at any one time Multiprogramming requires –Bridging the semantic gap –Sharing resources among different programs –Hiding from each program the fact of this sharing Spring, 2013

CompSci 143A19 OS Evolution and Concepts Multiprogramming Systems –Overlap CPU and I/O –Protection –Synchronization and Communication –Dynamic Memory Management (swapping and paging) Interactive OSs –Guaranteed response time –Time-sharing (quantum) Spring, 2013

CompSci 143A20 OS Evolution and Concepts PC and workstation OSs –GUI Real-time OSs –Deadlines (scheduling) Distributed OSs –Loosely coupled/tightly coupled –Consistent timeline (logical clocks, time stamps) Spring, 2013

CompSci 143A21 Abstraction E.W.Dijkstra, “The Humble Programmer” (1972): “The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise.” “abstraction” is created by distinguishing –Essential characteristics from Unimportant details Build levels (layers) of abstractions: –What is unimportant detail at one level is an essential characteristic at a lower one. Spring, 2013

CompSci 143A22 History Originally developed by Steve Franklin Modified by Michael Dillencourt, Spring, 2009 Modified by Michael Dillencourt, Summer 2012 Spring, 2013