Operating System. Operating Systems Structure Chapter 2. Services Provided by the OS. Evolution of an Operating System

Similar documents
The First Operating System Was Human

Operating Systems Overview. Chapter 2

Operating System. Operating System Overview. Layers of Computer System. Operating System Objectives. Services Provided by the Operating System

Operating System Overview. Operating System

Operating Systems Overview. Chapter 2

Operating System Overview. Chapter 2

Operating System Overview. Chapter 2

Operating Systems : Overview

Operating System Support

Computer System Overview

Chapter 2 Operating System Overview

Unit 2 : Computer and Operating System Structure

Operating Systems. Engr. Abdul-Rahman Mahmood MS, PMP, MCP, QMR(ISO9001:2000) alphapeeler.sf.net/pubkeys/pkey.htm

OPERATING SYSTEMS OVERVIEW

Principles of Operating Systems CS 446/646

TYPES OF OPERATING SYSTEMS. Dimple Juneja

Operating Systems: Overview and Introduction

Operating System Support

Module 1: Introduction

Chapter 8. Operating System Support. Yonsei University

Module 1: Introduction. What is an Operating System?

Objectives and Functions Convenience. William Stallings Computer Organization and Architecture 7 th Edition. Efficiency

Contents. Today's Topic: Introduction to Operating Systems

OPERATING SYSTEM SUPPORT (Part 1)

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

Software Concepts. It is a translator that converts high level language to machine level language.

Andrew S. Tanenbaum, Operating Systems, Design and Implementation, (Second Edition), Prentice Hall.

Operating Systems: Internals and Design Principles. Chapter 2 Operating System Overview Seventh Edition By William Stallings

Operating Systems. Engr. Abdul-Rahman Mahmood MS, PMP, MCP, QMR(ISO9001:2000) alphapeeler.sf.net/pubkeys/pkey.htm

Operating Systems CS3502 Spring 2018

Introduction. CS3026 Operating Systems Lecture 01

Four Components of a Computer System

Chapter 1: Introduction

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

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

Chapter 1: Introduction

CHAPTER-1: INTRODUCTION TO OPERATING SYSTEM:

OS - Introduction Ezio Bartocci Institute for Computer Engineering

Introduction to Operating System

CSCE 313 Introduction to Computer Systems. Instructor: Dezhen Song Spring 2015

2. The system of... generally ran one job at a time. These were called single stream batch processing.

CSCE-313 Introduction to Computer Systems

Computer Organization and Architecture. OS Objectives and Functions Convenience Making the computer easier to use

Introduction to Operating System. Dr. Aarti Singh Professor MMICT&BM MMU

OPERATING SYSTEM. Functions of Operating System:

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

OS Design Approaches. Roadmap. OS Design Approaches. Tevfik Koşar. Operating System Design and Implementation

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

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

COMPUTER SYSTEM AND OPERATING SYSTEM OVERVIEW

Operating Systems Fundamentals. What is an Operating System? Focus. Computer System Components. Chapter 1: Introduction

Module 1: Introduction

6.033 Spring Lecture #6. Monolithic kernels vs. Microkernels Virtual Machines spring 2018 Katrina LaCurts

Rab Nawaz Khan Jadoon

Introduction. What is an Operating System? A Modern Computer System. Computer System Components. What is an Operating System?

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

Computer Fundamentals : Pradeep K. Sinha& Priti Sinha

EEE 435 Principles of Operating Systems

Major OS Achievements. Chris Collins. 15 th October 2006

Solved MCQs on Operating System Principles. Set-1

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

Introduction to Computer Systems and Operating Systems

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

Reserves time on a paper sign-up sheet. Programmer runs his own program. Relays or vacuum tube hardware. Plug board or punch card input.

CS370 Operating Systems

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

Chapter 1: Introduction

SRI VENKATESWARA COLLEGE OF ENGINEERING PENNALUR, SRIPERUMBUDUR TK

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

Process Characteristics

System Call. Preview. System Call. System Call. System Call 9/7/2018

Multiprogramming. Evolution of OS. Today. Comp 104: Operating Systems Concepts 28/01/2013. Processes Management Scheduling & Resource Allocation

Chapter 2 Operating-System Structures

Chapter 2: System Structures

OPERATING SYSTEMS UNIT - 1

2008 Chapter-8 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill, Inc.

Lecture Topics. Announcements. Today: Operating System Overview (Stallings, chapter , ) Next: Processes (Stallings, chapter

CSCE Introduction to Computer Systems Spring 2019

Operating System Architecture. CS3026 Operating Systems Lecture 03

Subject: Operating System (BTCOC403) Class: S.Y.B.Tech. (Computer Engineering)

Processes and Non-Preemptive Scheduling. Otto J. Anshus


Processes and Threads

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

Memory Layout for a Simple Batch System

Operating System: an Overview. Lucia Dwi Krisnawati, MA

CSC 453 Operating Systems

OPERATING SYSTEMS: Lesson 1: Introduction to Operating Systems

Subject Name:Operating system. Subject Code:10EC35. Prepared By:Remya Ramesan and Kala H.S. Department:ECE. Date:

OPERATING SYSTEMS. Prescribed Text Book Operating System Principles, Seventh Edition By Abraham Silberschatz, Peter Baer Galvin and Greg Gagne

What is an Operating System? A Whirlwind Tour of Operating Systems. How did OS evolve? How did OS evolve?

Operating System Structure

CS Operating Systems

Motivation. Threads. Multithreaded Server Architecture. Thread of execution. Chapter 4

Part I Overview Chapter 1: Introduction

Chapter 14 Operating Systems

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

Chapter 14 Operating Systems

Transcription:

Operating System Operating Systems Structure Chapter 2 1 Is a control program that controls the execution of application programs OS must relinquish control to user programs and regain it safely and efficiently Tells the CPU when to execute other pgms Is an interface between the user and hardware Masks the details of the hardware to application programs Hence OS must deal with hardware details 2 Services Provided by the OS Evolution of an Operating System Facilities for Program creation editors, compilers, linkers, and debuggers Program execution loading in memory, I/O and file initialization Access to I/O and files deals with the specifics of I/O and file formats System access Protection in access to resources and data Resolves conflicts for resource contention 3 Must adapt to hardware upgrades and new types of hardware. Examples: Character vs graphic terminals Introduction of paging hardware Must offer new services, eg: internet support The need to change the OS on regular basis place requirements on it s design modular construction with clean interfaces object oriented methodology 4 1

Simple Batch Systems The Monitor Are the first operating systems (mid-50s) The user submit a job (written on card or tape) to a computer operator The computer operator place a batch of several jobs on a input device A special program, the monitor, manages the execution of each program in the batch Resident monitor is in main memory and available for execution Monitor utilities are loaded when needed 5 Monitor reads jobs one at a time from the input device Monitor places a job in the user program area A monitor instruction branches to the start of the user program Execution of user pgm continues until: end-of-pgm occurs error occurs Causes the CPU to fetch its next instruction from Monitor 6 Job Control Language (JCL) Job Control Language (JCL) Is the language to provide 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 Each read instruction (in user pgm) causes one line of input to be read Causes (OS) input routine to be invoke checks for not reading a JCL line skip to the next JCL line at completion of user program 7 8 2

Batch OS Desirable Hardware Features Alternates execution between user program and the monitor program Relies on available hardware to effectively alternate execution from various parts of memory Memory protection do not allow the memory area containing the monitor to be altered by user programs Timer prevents a job from monopolizing the system an interrupt occurs when time expires 9 10 Desirable Hardware Features Privileged instructions can be executed only by the monitor an interrupt occurs if a program tries these instructions Interrupts provides flexibility for relinquishing control to and regaining control from user programs Multiprogrammed Batch Systems I/O operations are exceedingly slow (compared to instruction execution) A program containing even a very small number of I/O ops, will spend most of its time waiting for them Hence: poor CPU usage when only one program is present in memory 11 12 3

Multiprogrammed Batch Systems If memory can hold several programs, then CPU can switch to another one whenever a program is awaiting for an I/O to complete This is multitasking (multiprogramming) Requirements for Multiprogramming Hardware support: I/O interrupts and (possibly) DMA in order to execute instructions while I/O device is busy Memory management several ready-to-run jobs must be kept in memory Memory protection (data and programs) Software support from the OS: Scheduling (which program is to be run next) To manage resource contention 13 14 Example: three jobs are submitted Advantages of Multiprogramming JOB1 JOB2 JOB3 Type of job Heavy compute Heavy I/O Heavy I/O Duration 5 min. 15 min. 10 min. Memory req. 50K 100 K 80 K Need disk? No No Yes Need terminal No Yes No Need printer? No No Yes Almost no contention for resources All 3 can run in minimum time in a multitasking environment (assuming JOB2/3 have enough CPU time to keep their I/O operations active) 15 Uniprogramming Multiprogramming Processor use 17% 33% Memory use 33% 67% Disk use 33% 67% Printer use 33% 67% Elapsed time 30 min. 15 min. Throughput rate 6 jobs/hr 12 jobs/hr Mean response time 18 min. 10 min. 16 4

Time Sharing Systems (TSS) Batch multiprogramming does not support interaction with users TSS extends multiprogramming to handle multiple interactive jobs Processor s time is shared among multiple users Time Sharing Systems (TSS) Because of slow human reaction time, a typical user needs 2 sec of processing time per minute Then (about) 30 users should be able to share the same system without noticeable delay in the computer reaction time The file system must be protected (multiple users ) Multiple users simultaneously access the system through terminals 17 18 System Structure Because of it s enormous complexity, we view the OS system as a series of levels Each level performs a related subset of functions Each level relies on the next lower level to perform more primitive functions Well defined interfaces: one level can be modified without affecting other levels This decomposes a problem into a number of more manageable sub problems 19 Monolithic systems Monolithic/layered system All services provided by the OS OS functionality provided by the OS/kernel Unix, VMS, Linux Features Easy to understand Simplifies construction Careful interface Very rigid 20 5

Characteristics of Modern Operating Systems New design elements were introduced recently In response to new hardware development multiprocessor machines high-speed networks faster processors and larger memory In response to new software needs multimedia applications Internet and Web access Client/Server applications 21 Microkernel architecture Support a minimal set of essential functions in the kernel primitive memory management (address space) Interprocess communication (IPC) basic scheduling Other OS services are provided by processes running in user mode (servers) device drivers, file system, virtual memory More flexibility, extensibility, portability A performance penalty by replacing service calls with message exchanges between process 22 Advantages of kernelized design Supports heterogeneity Supports flexibility Supports extensibility Challenge- performance/security 23 6