Where are being used the OS?

Slides:



Advertisements
Similar presentations
Maninder Kaur OPERATING SYSTEM Maninder Kaur 11 Oct 2010.
Advertisements

CMSC 421: Principles of Operating Systems Section 0202 Instructor: Dipanjan Chakraborty Office: ITE 374
CMPT 300: Operating Systems I Dr. Mohamed Hefeeda
Chapter 1: Introduction
1 School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Dr. Mohamed Hefeeda.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
CSS430 Introduction1 Textbook Ch1 These slides were compiled from the OSC textbook slides (Silberschatz, Galvin, and Gagne) and the instructor’s class.
1 CIS450/IMSE450/ECE478 Operating Systems Winter 2003 Professor Jinhua Guo.
Operating Systems BTEC IT Practitioners.
Introduction  What is an Operating System  What Operating Systems Do  How is it filling our life 1-1 Lecture 1.
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.
An Introduction to Operating Systems. Definition  An Operating System, or OS, is low-level software that enables a user and higher-level application.
Week 6 Operating Systems.
Operating System Overview
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems.
Lecture By : Rupinder Kaur Lect. IT SRS Govt. Polytechnic college Ludhiana Topic : Overview of Operating System.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: System Structures.
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
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:
Fall 2000M.B. Ibáñez Lecture 01 Introduction What is an Operating System? The Evolution of Operating Systems Course Outline.
المحاضرة الاولى Operating Systems. The general objectives of this decision explain the concepts and the importance of operating systems and development.
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 UNIT – I R.SOUJANYA IT Dept. UNIT I Computer System and Operating System Overview Chapter 1: IntroductionIntroduction Overview of Computer.
Silberschatz, Galvin and Gagne  Operating System Concepts Lectured by Dr. Lican Huang
CIS250 OPERATING SYSTEMS Chapter One Introduction.
Silberschatz and Galvin  Operating System Concepts Module 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems Multiprocessor Systems Distributed Systems Clustered System Real.
Chapter 1: Introduction What is an Operating System? Mainframe Systems Desktop Systems Multiprocessor Systems Distributed Systems Clustered System Real.
References A. Silberschatz, P. B. Galvin, and G. Gagne, “Operating Systems Concepts (with Java)”, 8th Edition, John Wiley & Sons, 2009.
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.
CSC322 OPERATING SYSTEM Mr. Dilawar Lecturer, Department of Computer Science, Jahan University Kabul, Afghanistan.
Applied Operating System Concepts
Chapter 1: Introduction
Chapter 1: Introduction
Applied Operating System Concepts
Network Operating Systems (NOS)
Evolution of Operating Systems
Chapter 1: Introduction
Chapter 1: Introduction
Operating Systems Introduction
Introduction to Operating System (OS)
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
חוברת שקפים להרצאות של ד"ר יאיר ויסמן מבוססת על אתר האינטרנט:
Operating System Concepts
Chapter 1: Introduction
Language Processors Application Domain – ideas concerning the behavior of a software. Execution Domain – Ideas implemented in Computer System. Semantic.
Subject Name: Operating System Concepts Subject Number:
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 2 Operating System Overview
Operating System Overview
Chapter 1: Introduction
Operating System Concepts
Chapter 1: Introduction
Presentation transcript:

Where are being used the OS? Widespread Invisible Windows Mac OS Linux OS Routers, switches, … OS Basic OS Android OS OS OS OS OS Internet of Things Raspbian OS

Operating Systems Introduction This course structure Sources: Yale university UC Berkeley JHU My experience

Assignments, Project Student’s should complete programming assignments on “Unix and Windows Processes &Threads programming on C, C++” Required Textbook: Abraham Silberschatz, Galvin, Gagne “Operating System Concepts”, 9th edition. 2012 Kay A. Robbins, Steven Robbins, Unix Systems Programming, 2003 Recommended Reference Books: Herbert Schildt. Windows 95 Programming in C and C++. 1995 Herbert Schildt. Windows 2000 Programming from the Ground Up. 2000.

Handout Content: 1.1. What is an Operating System 1.2. Computer system types and description 1.2.1. Mainframe Computer Systems 1.2.1.1. Batch Systems 1.2.1.2. Multiprogrammed Systems 1.2.1.3. Time Sharing Systems 1.2.2. Desktop Systems 1.2.3. Multiprocessor Systems Tandem, Symmetric, Asymmetric multiprocessor systems 1.2.4. Distributed Systems 1.2.4.1. Client Server Systems 1.2.4.2. Peer-to-Peer Systems 1.2.5. Clustered Systems 1.2.6. Real Time Systems 1.2.7. Handheld Systems Textbook - Silberschatz, Chapter 1

Operating System Purpose Run user(s’) program(s) 3 main responsibilities To provide an environment for a computer user to execute programs on computer hardware in a convenient and efficient manner (Shells, Windows, Terminals, Executable files concept). To allocate separate resources (memory, processor, disk space, I/O device usage) of the computer as needed to solve the problem given. The allocation process should be as fair and efficient as possible. Control the running programs: supervision of the execution of user programs to prevent errors and improper use of the computer protection of OS and programs from user programs management of the operation and control of I/O devices device drivers, file systems

What is an Operating System ? a program that manages the computer hardware acts as an intermediary between the user applications and the computer hardware. provides certain services to programs and to the users of those programs in order to make their tasks possible and easier.

What is an Operating System ?

Operating-Systems are improved. The principles remain IoT - The same evolution? The newest computers repeat the history of old computers starting from the very simple software and growing to full multiprocessor OS. All OS solutions invented tens of years ago are applicable for newest computers.

Early Computer System and OS types. The trends. Tasks are collected in queues. CPU takes and runs the parts of tasks from queue giving equal or appropriate time to each of task in order to serve all tasks from the queue. CPU switches between queue tasks after equal or predefined intervals of time and usually is never idle. User interaction with the programs is possible Tasks are collected in similar tasks’ batches Next task from batch runs when the previous one is finished fully CPU is dedicated for one task and is often idle Tasks are collected in queues (pools) If CPU is idle it takes another (next or previous unfinished) task’s some part to be busy all the time CPU switches between tasks (programs) when it is idle and usually is busy all the time.

Mainframe Computer Systems Batch Systems Disadvantage: In this execution environment, the CPU is often idle. Why ? … Because the speeds of the mechanical I/O devices are intrinsically slower than are those of electronic devices.

System Evaluation Criteria CPU utilization (maximize – keep the CPU as busy as possible) – the time the CPU is busy during some time period Throughput (maximize) - # of processes that complete their execution per time unit Turnaround time (minimize)– amount of time to execute a particular process

Batch System Evaluation Task 1 Sec   CPU time. Calculations. 1 I/O time. Input from the HDD 2 Task 2 Sec   CPU time. Calculations. 2 I/O time. Input from the HDD 1 I/O time. Print on Printer. Task 3 Sec   CPU time. Calculations. 1 I/O time. Output to HDD. 2 Overall time for all 3 tasks to finish Throughput Task1 Turnaround time Task2 Turnaround time Taks3 Turnaround time Average Turnaround time for all tasks CPU utilization 15 3/15 5 11 (15+11+5)/3 =10.3 8/15 ~53%

Computer System types and description Mainframe Computer Systems were very huge and expensive. The expensive system requires the most effective usage of expensive resources - especially the processor. That was why the main purpose of the MainFrame OS was to utilize the processor by all means. Thus appear the Multiprogrammed OS.

Computer System types and description Mainframe Computer Systems Multiprogrammed Systems Advantage: Multiprogramming increases CPU utilization by organizing jobs so that the CPU always has one to execute. How ? … Disadvantage: Multiprogrammed, batched systems provided an environment where the various system resources (for example, CPU, memory, peripheral devices) were utilized effectively, but it did not provide for user interaction with the computer system. Problems: Job and CPU scheduling, Memory management , different tasks resources protection issues should be taken in account to keep the system effective. Time

MultiProgrammed System Evaluation Task 1 Sec   CPU time. Calculations. 1 I/O time. Input from the HDD 2 Resource Usage Table Multiprogrammed System The resource is dedicated if it’s free and if there is a request Overall time for all 3 tasks to finish Throughput Task1 Turnaround time Task2 Turnaround time Taks3 Turnaround time Average Turnaround time for all tasks CPU utilization 15 3/15 5 11 (15+11+5)/3 =10.3 8/15 ~53% Task 2 Sec   CPU time. Calculations. 2 I/O time. Input from the HDD 1 I/O time. Print on Printer. Seconds CPU HDD Printer CPU queue 1 T1   T2,T3 2 T2 T3 3 4 5 6 7 8 9 10 Task 3 Sec   CPU time. Calculations. 1 I/O time. Output to HDD. 2 Overall time for all 3 tasks to finish Throughput Task1 Turnaround time Task2 Turnaround time Task3 Turnaround time Average Turnaround time for all tasks CPU utilization 9 3/9 6 8 (6+9+8)/3=7.67 8/9~89%

Multitasking (time sharing) Systems The CPU executes multiple jobs by switching among them, but the switches occur so frequently that the users can interact with each program while it is running. Advantage: Users can interact with each program while it is running. How ? … Time Disadvantage: Time-sharing operating systems are even more complex (difficult, expensive) than multiprogrammed operating systems. Problems: Job and CPU scheduling, Memory management, User and Security management, Protection issues should be taken in account to keep the system effective.

Time Sharing System Evaluation For external devices if the task takes the resource it keeps the resource until completing the operation with it. Task 1 Sec   CPU time. Calculations. 1 I/O time. Input from the HDD 2 Resource Usage Table Seconds CPU HDD Printer CPU queue HDD queue 1 T1   T2,T3 2 T2 T3 3 4 5 6 7 8 9 10 Task 2 Sec   CPU time. Calculations. 2 I/O time. Input from the HDD 1 I/O time. Print on Printer. Task 3 Sec   CPU time. Calculations. 1 I/O time. Output to HDD. 2 Overall time for all 3 tasks to finish Throughput Task1 Turnaround time Task2 Turnaround time Task3 Turnaround time Average Turnaround time for all tasks CPU utilization 10 3/10 7 6 (7+10+6)/3 =7.67 8/10 ~80%

Evaluation of the systems by Criteria Seconds CPU HDD Printer CPU queue 1 T1   T2,T3 2 T2 T3 3 4 5 6 7 8 9 Task 1 Sec   CPU time. Calculations. 1 I/O time. Input from the HDD 2 Seconds CPU HDD Printer 1 T1   2 3 4 5 6 T2 7 8 9 10 11 12 T3 13 14 15 Task 2 Sec   CPU time. Calculations. 2 I/O time. Input from the HDD 1 I/O time. Print on Printer. Seconds CPU HDD Printer CPU queue HDD queue 1 T1   T2,T3 2 T2 T3 3 4 5 6 7 8 9 10 Task 3 Sec   CPU time. Calculations. 1 I/O time. Output to HDD. 2   Overall time for all 3 tasks to finish Throughput Task1 Turnaround time Task2 Turnaround time Task3 Turnaround time Average Turnaround time for all tasks CPU utilization Batch 15 3/15 5 11 (15+11+5)/3=10.3 8/15 ~53% Multiprogrammed 9 3/9 6 8 (6+9+8)/3=7.67 8/9~89% Time Sharing 10 3/10 7 (7+10+6)/3=7.67 8/10~80%