February 02Page 1 Operating Systems Introduction.

Slides:



Advertisements
Similar presentations
Lecture 11: Operating System Services. What is an Operating System? An operating system is an event driven program which acts as an interface between.
Advertisements

Maninder Kaur OPERATING SYSTEM Maninder Kaur 11 Oct 2010.
Introduction CSCI 444/544 Operating Systems Fall 2008.
CS 345 Computer System Overview
CMSC 421: Principles of Operating Systems Section 0202 Instructor: Dipanjan Chakraborty Office: ITE 374
Chapter 1: Introduction
Lecture 1: History of Operating System
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
Operating Systems BTEC IT Practitioners.
Operating Systems.
©Brooks/Cole, 2003 Chapter 7 Operating Systems Dr. Barnawi.
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.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
1/16/2008CSCI 315 Operating Systems Design1 Introduction Notice: The slides for this lecture have been largely based on those accompanying the textbook.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
1 Lecture 2 Introduction, OS History n objective of an operating system n OS history u no OS u batch system u multiprogramming u multitasking.
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
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?
1 5/25/2016 操作系统课件 教材: 《操作系统概念(第六版 影印版)》 【原书名】 Operating System Concepts(Sixth Edition) [ 原书信息 ] Operating System Concepts(Sixth Edition) [ 原书信息 ] 【原出版社】
Thanks to Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction n What is an Operating System? n Mainframe Systems.
Chapter 1. Introduction What is an Operating System? Mainframe Systems
 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.
 Introduction to Operating System Introduction to Operating System  Types Of An Operating System Types Of An Operating System  Single User Single User.
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:
OSes: 1. Intro 1 Operating Systems v Objectives –introduce Operating System (OS) principles Certificate Program in Software Development CSE-TC and CSIM,
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.
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 E-Main: Phone:
Invitation to Computer Science 5 th Edition Chapter 6 An Introduction to System Software and Virtual Machine s.
INVITATION TO COMPUTER SCIENCE, JAVA VERSION, THIRD EDITION Chapter 6: An Introduction to System Software and Virtual Machines.
1.1 Operating System Concepts Introduction What is an Operating System? Mainframe Systems Desktop Systems Multiprocessor Systems Distributed Systems Clustered.
Operating Systems David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 432.
Chapter 1: Introduction and History  Where does the operating system fit in a computing system?  What does the operating system achieve?  What are the.
Silberschatz and Galvin  Operating System Concepts Module 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming.
INFORMATION SYSTEM-SOFTWARE Topic: OPERATING SYSTEM CONCEPTS.
Chapter 1: Introduction
Operating Systems Objective n The historic background n What the OS means? n Characteristics and types of OS n General Concept of Computer System.
CPSC 171 Introduction to Computer Science System Software and Virtual Machines.
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.
Operating System. Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems Multiprocessor Systems Distributed Systems Clustered.
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.
Silberschatz and Galvin  Operating System Concepts Module 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview: Using Hardware.
Operating Systems (Credit to: Rick Graziani of Cabrillo College)
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 0: Historical Overview.
Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems Multiprocessor Systems Distributed Systems Clustered System Real.
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
2. OPERATING SYSTEM 2.1 Operating System Function
Evolution of Operating Systems
Chapter 1: Introduction
Introduction to Operating System (OS)
Chapter 1: Introduction
Chapter 1: Introduction
חוברת שקפים להרצאות של ד"ר יאיר ויסמן מבוססת על אתר האינטרנט:
Operating Systems.
Operating System Concepts
Language Processors Application Domain – ideas concerning the behavior of a software. Execution Domain – Ideas implemented in Computer System. Semantic.
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.
Chapter 1: Introduction
Operating System Concepts
Presentation transcript:

February 02Page 1 Operating Systems Introduction

February 02Page 2 OS is a Control Program OS Functions are: 1) OS is a resource allocator. Resources are: –CPU time –I/O devices –Files –Memory, internal (SIMM, DIMM) –Mass Storage (HD, MTU…) 2) To make Computer System user friendly –GUI, Sound, Use of human (like) languages

February 02Page 3 CS Components Application Programs Operating System Computer Hardware User 1User 2User 4User 3User 5

February 02Page 4 Early Computers (Mainframes) First Computers had no OS –programmer had to control hardware ( …) “Single User” machine –User had to book time to use CS –CS was often not available, or was idle Computers were set up to run a (ONE) job –load, run and unload compiler, (removable disk of 5MByte) –load assembler, …(JOB, FOR,…), another disk

February 02Page 5 Batch System Job Cards were used to specify steps in the job process –load compiler, one instruction, one card –run compiler, –unload compiler, –load assembler, –Changes in the program were done by punching new cards Human operators had to batch jobs together –jobs requiring the same compiler run in the batch

February 02Page 6 Resident Monitor – First OS Monitor Program was doing job scheduling User is no longer in control of the CS Resident Monitor was always in memory RM was first OS, with components: –Loader –Job Sequencer –Control Card Interpreter (Command Interpreter) The computer efficiency was increased

February 02Page 7 Monitor Program While the user application is running, it must not be allowed to alter the monitor –CPU hardware is designed to protect the monitor in memory –an error message is generated if protected memory area is to be accessed Monitor must take control of CS if a application enters an infinite loop –Timer is a hardware to support that when timer goes off, monitor program gain control back

February 02Page 8 Monitor Monitor prevents possible hardware damage, caused by application software, by using –Privileged instructions: CPU allows only the monitor to run instructions which use the I/O devices, and which will report back with an error in case of any failure How does CS hardware put Monitor Program back in control of CS? –Traps –Interrupts

February 02Page 9 Next Step - Spooled Batch Systems I/O activities are too slow comparing to CPU activities, order of [ms], [sec] vs. [ns]: –Card reader is slow, and following that, CPU is mostly idle as it waits for data to come in –Writing output / printing is also slow, and CPU also mostly idle Computer CPU time was always expensive, $$$ SPOOL-ing (Simultaneous Peripheral Operation On Line) was THE solution

February 02Page 10 Spooled Batch Systems Cheaper machines do the Input and record details on a tape or disk –Tape or Disk is then used by the main computer Output is written on the disk, or tape, which another cheaper machine reads to print out CPU Idle time is down from few min to few sec, ms.

February 02Page 11 Multi-programmed Batch Systems 1965 Spooling still means that the CPU is mostly idle while accessing data from –A disk ( few 10s ms) or –A tape (few min) Next step: Multi-programmed Batch Systems –Introduce more than one user application into memory. While I/O is occurring, CPU run another job –Operating System, or Control Program, now have to do Job Management Priority, FCFS, RR,…

February 02Page 12 Multi-programming Memory allocation for multi-programmed system Operating System Job 1, (User) Job 2 Job 3

February 02Page 13 Concurrent Jobs Operating System is now doing resource allocation for concurrent jobs in memory –By the time an input device is available, few jobs are most likely waiting ( in a i/o queue for that device) –OS must ensure that the data goes to the correct job i.e. user application –OS must protect devices from competing jobs –Fairness of resource allocation is to be in place –Efficiency of the system is always an issue –Deadlock prevention, and/or recovery should be enforced

February 02Page 14 New OS functions to Support Multitasking I/O routines to handle concurrent requests More sophisticated memory management –multiple jobs must be placed in memory and –be protected from each other CPU scheduling, –to choose which ready-to-run job gets the CPU first I/O devices, and Mass storage devices, allocation algorithms are developed to handle concurrent requests –Disk Management: FCFS, SSTF, SCAN, CSCAN, LOOK, CLOOK –Printer queue: FCFS

February 02Page 15 Batch Jobs, still in place Modern Operating Systems like Windows (DOS), UNIX,…, can perform batch jobs, as well. UNIX batch shell script: »mkdir new_dir »cp *.txt new_dir »startx »logout

February 02Page 16 Multi-user Interactive Systems Batch Systems: There was no interaction between programmer and application during execution –User have to provide all possible inputs in advance, –Question was, how to handle errors, in the process? Multi-user Interactive Systems, or Time sharing was introduced in 1970s: –User application and OS can: take inputs, interactively, and Produce outputs, in a reasonable time CS serve many users (Honeywell, IBM… 128, 256 users)

February 02Page 17 Multi-user Interactive Systems CPU schedules a small time-slice to each user application –For n users, give each user (job, task) approximately 1/n of the CPU time, over a short interval (Round Robin Algorithm) Such OS requires File System with easy interface for an interactive user.

February 02Page 18 Finally, PC Systems, late 1970,… Hardware is becoming cheap, A PC is a single user machine, As being a single user CS, used to have just a few, hardware and resources, protection mechanisms PC is quite sophisticated now, Well known PC Operating Systems: –CPM, DOS, WINDOWS,…

February 02Page 19 Other CS and OS Parallel Systems, Multiprocessing –More than one CPU sharing the same clock, bus, and sometimes the same memory –Parallel processing, load sharing Two Types –Symmetric systems: each CPU runs a copy of the OS. The separate operating systems can communicate with each other when necessary in order to balance workloads and coordinate resources –Asymmetric systems: only one OS. Different OS processes can be running on different CPUs

February 02Page 20 Networked Systems User is able to access files/peripherals across a network and can log in to remote machines CPUs time is a network resource as well Network types: –LAN, MAN (broadcasting mostly, but switching as well) –WAN (switching mostly) Internet Computing

February 02Page 21 Distributed Systems User sees the system as it is just his local system, –in reality, files and running programs are on different machines. On some systems, running applications are able to migrate from system to system –Internet Computing On other systems, a running application has to stay on the computer that started it.

February 02Page 22 Real-time OS Systems defined according response time. Real Time OS guarantees that a request to the OS will be done within a certain time-limit (short time usually). Mainly used for embedded systems that need to control processes, or equipment –Automatic pilot, –medical equipment, –some military systems, –power station,…

February 02Page 23 Real-time OS Hard limit real-time: –Absolutely guarantees that any request will be done within a time limit system usually limits types of activities the user application can perform to ensure a request can be met Soft limit real-time: –to do the request on time

February 02Page 24 References Silberscharz A. and Galvin P., Operating System Concepts, John Wiley & Sons, 1999 Tanenbaum A., Modern Operating Systems, 2 nd edition, Prentice Hall, New Jersey, 2001