CHAPTER 2 OPERATING SYSTEM OVERVIEW 1. Operating System Operating System Definition A program that controls the execution of application programs and.

Slides:



Advertisements
Similar presentations
Operating Systems (CSCI2413) Lecture 2 Overview phones off (please)
Advertisements

Processes Management.
Chapter 2 Operating System Overview Operating Systems: Internals and Design Principles, 6/E William Stallings.
SLC/Ver1.0/OS CONCEPTS/Oct'991INTRODUCTION What is an Operating System? Operating Structure -System Components -OS Services -System Calls & Programs -System.
CS 345 Computer System Overview
Operating-System Structures 1. Operating-System System Components 2. Operating System Services 3. System Calls 4. System Structure 5. Virtual Machines.
3.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 3: Operating-System Structures System Components Operating System.
Lecture 1: History of Operating System
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Common System Components
Os31 Chapter 3 Operating-System Structures. os32 Outlines System Components Operating System Services System Calls System Programs System Structure Virtual.
Silberschatz, Galvin and Gagne  Operating System Concepts Common System Components Process Management Main Memory Management File Management.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
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.
Abhinav Kamra Computer Science, Columbia University 3.1 Operating System Concepts Silberschatz, Galvin and Gagne  2002 Chapter 3: Operating-System Structures.
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.
Lecture By : Rupinder Kaur Lect. IT SRS Govt. Polytechnic college Ludhiana Topic : Overview of Operating System.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: System Structures.
9/14/2015B.Ramamurthy1 Operating Systems : Overview Bina Ramamurthy CSE421/521.
Silberschatz, Galvin and Gagne  Applied Operating System Concepts Chapter 3: Operating-System Structures System Components OS Services System.
1 Operating System Overview Chapter 2 Advanced Operating System.
Chapter 2 Operating System Overview Operating Systems: Internals and Design Principles, 6/E William Stallings.
Module 1.1: Operating-System Structures
Introduction Operating Systems. No. 2 Contents Definition of an Operating System (OS) Role of an Operating System History of Operating Systems Classification.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
UNIX and Shell Programming (06CS36)
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.
◦ What is an Operating System? What is an Operating System? ◦ Operating System Objectives Operating System Objectives ◦ Services Provided by the Operating.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz and Galvin  Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services System Calls.
3.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 3: Operating-System Structures System Components Operating System.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services.
3.1 Operating System Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
1 Operating System Overview Chapter 2. 2 Operating System A program that controls the execution of application programs An interface between applications.
OS, , Part I Operating - System Structures Department of Computer Engineering, PSUWannarat Suntiamorntut.
1 CSE Department MAITSandeep Tayal Operating-System Structures System Components Operating System Services System Calls System Programs System Structure.
Operating System Principles And Multitasking
UNIX and Shell Programming
Chapter 2 Operating System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Distributed System Services Fall 2008 Siva Josyula
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 3 Operating-System Structures Slide 1 Chapter 3 Operating-System Structures.
1 Operating System Overview Chapter 2. 2 Operating System A program that controls the execution of application programs An interface between applications.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services.
Introduction to Operating System. 1.1 What is Operating System? An operating system is a program that manages the computer hardware. It also provides.
Operating System (Reference : OS[Silberschatz] + Norton 6e book slides)
Copyright Prentice Hall, Inc. 1 Operating System Overview.
System Components Operating System Services System Calls.
Operating System Structure Lecture: - Operating System Concepts Lecturer: - Pooja Sharma Computer Science Department, Punjabi University, Patiala.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
1.3 Operating system services An operating system provide services to programs and to the users of the program. It provides an environment for the execution.
Module 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
Chapter 3: Operating-System Structures
Module 3: Operating-System Structures
Operating System Structure
Introduction to Operating System (OS)
Chapter 3: Operating-System Structures
Basic Concepts Protection: Security:
Chapter 2: Operating-System Structures
Introduction to Operating Systems
Chapter 2 Operating System Overview
Chapter 2: Operating-System Structures
Operating System Overview
Presentation transcript:

CHAPTER 2 OPERATING SYSTEM OVERVIEW 1

Operating System Operating System Definition A program that controls the execution of application programs and acts as an interface between applications and hardware. 2

Layers of Computer System 3

Evolution of Operating Systems Historical Timeline 4 GenerationPeriodOperating System Genre First Generation Serial Processing (No Operating System) Second Generation Simple Batch OS Third Generation Multiprogramming OS Fourth Generation presentTime-Sharing OS

Second Generation: Simple Batch OS  Simple Batch Systems  Batch jobs together.  Program branches back to monitor when finished.  Jobs read in via punched cards.  Batch systems introduced to reduce wasted time in setting up and running jobs. 5

Second Generation: Simple Batch OS (Cont’d)…………X 1. Bring cards to Read cards to tape offline. 3. Put tape on 7094 which does computing. 4. Put tape on 1401 which prints output offline. 6

Second Generation: Simple Batch OS (Cont’d)…………X  Batch Processing: is to batch jobs together.  Uni-Programming: executing one job at a time until finished.  Processor must wait for I/O instruction to complete before proceeding to next instruction. 7

Third Generation: Multiprogramming OS……………X  When one job needs to wait for I/O, the processor can switch to the other job 8

Third Generation: Multiprogramming OS (Cont’d)………….X 9

Fourth Generation: Time-Sharing OS  Uses multiprogramming to handle multiple interactive jobs.  Processor time is shared among multiple users.  In a time-sharing system, multiple users simultaneously access the system through terminals.  Nowadays,  A computer user can listen to audio using RealPlayer while coping some information from the internet using Google Chrome web browser to a MS WORD document.  All of this happens at the same time using time-sharing. 10

Services Provided by the Operating System 1) Program development 2) Program execution 3) Access to I/O devices 4) Controlled access to files 5) System Access 6) Error detection and response 7) Accounting 8) Resource Allocation 11

Services Provided by the Operating System…………………X 1) Program development - Provide facilities like Editors and debuggers. 2) Program execution – system capability to load a program into memory and to run it. 3) Access to I/O devices - since user programs cannot execute I/O operations directly, the operating system must provide some means to perform I/O. 4) Controlled access to files - program capability to read, write, create, and delete files. 5) System Access - ensuring that all access to system resources is controlled. 12

Services Provided by the Operating System (Cont’d)…………X 6) Error detection and response - ensure correct computing by detecting errors in the CPU and memory hardware, in I/O devices, or in user programs.  Example:  Internal and external hardware errors like Memory errors & Device failure  Software errors like Arithmetic overflow & Access forbidden memory locations 7) Accounting - keep track of and record which users use how much and what kinds of computer resources for account billing or for accumulating usage statistics & Monitor performance. 8) Resource Allocation - allocating resources to multiple users or multiple jobs running at the same time. 13

System Resources  A resource, or system resource, is any physical or virtual component of limited availability within a computer system.  Major resource types  CPU time  Memory Space  Hard disk space  Network throughput  Electrical power  External Devices  Input/output operations 14 The most significant resources are: CPU Time & Memory Space

Objectives of Resource Management  There are three objectives of resource management: 1) Fairness: give equal and fair access to resources. 2) Differential Responsiveness: discriminate among different classes of jobs. 3) Efficiency: maximize throughput, minimize response time, and accommodate as many processes as possible. 15

Operating System as a Resource Manager  Operating System manages different resources in order to achieve the formerly-mentioned objectives of resource management.  The major management work as follows: 1) Process Management 2) Main-Memory Management 3) File Management 4) I/O System Management 5) Secondary Management 16

(1) Process Management…..X  A process is a program in execution. A process needs certain resources, including CPU time, memory, files, and I/O devices, to accomplish its task.  The operating system is responsible for the following activities in connection with process management. 1) Process creation and deletion. 2) process suspension and resumption. 3) Provision of mechanisms for:  process synchronization  process communication 17

(2) Main-Memory Management  Memory is a large array of words or bytes, each with its own address. It is a repository of quickly accessible data shared by the CPU and I/O devices.  Main memory is a volatile storage device. It loses its contents in the case of system failure.  The operating system is responsible for the following activities in connections with memory management: 1) Keep track of which parts of memory are currently being used and by whom. 2) Decide which processes to load when memory space becomes available. 3) Allocate and deallocate memory space as needed. 18

(3) File Management  A file is a collection of related information defined by its creator. Commonly, files represent programs (both source and object forms) and data.  The operating system is responsible for the following activities in connections with file management: 1) File creation and deletion. 2) Directory creation and deletion. 3) Support of primitives for manipulating files and directories. 4) Mapping files onto secondary storage. 5) File backup on stable (nonvolatile) storage media. 19

(4) I/O System Management….X  The I/O system consists of: 1) A buffer-caching system 2) A general device-driver interface 3) Drivers for specific hardware devices 20

(5) Secondary-Storage Management  Since main memory (primary storage) is volatile and too small to accommodate all data and programs permanently, the computer system must provide secondary storage to back up main memory.  Most modern computer systems use disks as the principle on-line storage medium, for both programs and data.  The operating system is responsible for the following activities in connection with disk management: 1) Free space management 2) Storage allocation 3) Disk scheduling 21

Kernel  Portion of operating system that is in main memory.  Contains most frequently used functions.  Also called the nucleus. 22

Process  A program in execution.  An instance of a program running on a computer.  The entity that can be assigned to and executed on a processor.  A process consists of three components: 1) An executable program. 2) Associated data needed by the program. 3) Execution context of the program.  All information the operating system needs to manage the process. 23