CompSci 001 34.1 Today’s topics Virtual Environment for Computing Operating Systems Upcoming Review Reading Great Ideas, Chapter 10.

Slides:



Advertisements
Similar presentations
What is an Operating System?
Advertisements

CSC 360- Instructor: K. Wu Overview of Operating Systems.
Operating System.
An Overview of the Computer System
Operating System Structure
Lecture 1: History of Operating System
UNIX Chapter 01 Overview of Operating Systems Mr. Mohammad A. Smirat.
Course Overview Introduction Computer System Structures
IT Systems Operating System EN230-1 Justin Champion C208 –
Operating Systems Concepts Professor Rick Han Department of Computer Science University of Colorado at Boulder.
©Brooks/Cole, 2003 Chapter 7 Operating Systems Dr. Barnawi.
Chapter 1 and 2 Computer System and Operating System Overview
University of Pennsylvania 9/7/00CSE 3801 CSE 380 Introduction to Operating Systems Insup Lee Fall 00.
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
Xuan Guo Chapter 1 What is UNIX? Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice Hall, 2003 Original Notes.
Operating Systems. Software Software – the instructions that make the CPU do useful things Divided into two main categories – System software – Applications.
Chapter 3  Manage the computer’s resources ◦ CPU ◦ Memory ◦ Disk drives ◦ Printers  Establish a user interface  Execute and provide services for applications.
Week 6 Operating Systems.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Operating Systems What do you have left on your computer after you strip away all of the games and application programs you bought and installed? Name.
© Paradigm Publishing Inc. 4-1 Chapter 4 System Software.
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
Introduction to Basic OS Concepts. Introduction What is an Operating System? Mainframe Systems Desktop Systems Multiprocessor Systems Distributed Systems.
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 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.
LINUX System : Lecture 2 OS and UNIX summary Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang University Acknowledgement.
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:
CS 1308 Computer Literacy and the Internet. Introduction  Von Neumann computer  “Naked machine”  Hardware without any helpful user-oriented features.
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
Computing and the Web Operating Systems. Overview n What is an Operating System n Booting the Computer n User Interfaces n Files and File Management n.
Chapter 1 CS 3204: Introduction. CS 3204: Operating Systems2 What is an Operating System (OS) ? Definition 1: An OS is the interface between the hardware.
What is an Operating System? The OS is a program – Permit easy access, control hardware, communicate between user and software, user and hardware, software.
INVITATION TO COMPUTER SCIENCE, JAVA VERSION, THIRD EDITION Chapter 6: An Introduction to System Software and Virtual Machines.
© Paradigm Publishing Inc. 4-1 OPERATING SYSTEMS.
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.
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.
1 Operating Systems: Principles and Practice Cpr E 308.
Chapter 6 An Introduction to System Software and Virtual Machines.
CPSC 171 Introduction to Computer Science System Software and Virtual Machines.
© Paradigm Publishing, Inc. 4-1 Chapter 4 System Software Chapter 4 System Software.
By Tom and James. Hardware is a physical part of the system that you can pick up and move. There are two types of hardware, external and internal. External.
3/12/2013Computer Engg, IIT(BHU)1 PARALLEL COMPUTERS- 2.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
Chapter 7 Operating Systems Foundations of Computer Science  Cengage Learning 1.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 0: Historical Overview.
UDel CISC361 Study Operating System principles - processes, threads - scheduling - mutual exclusion - synchronization - deadlocks - memory management -
Introduction to Operating Systems
Operating System & Application Software
Introduction to Basic OS Concepts
Operating System.
Introduction to Operating System (OS)
7 Operating system Foundations of Computer Science ã Cengage Learning.
TYPES OFF OPERATING SYSTEM
Chapter 1: Introduction
Chapter 1: Introduction
חוברת שקפים להרצאות של ד"ר יאיר ויסמן מבוססת על אתר האינטרנט:
Intro. To Operating Systems
What is an Operating System?
CSE 542: Operating Systems
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
Lecture Topics: 11/1 Hand back midterms
Introduction and Overview
Necessary Background for OS
Presentation transcript:

CompSci Today’s topics Virtual Environment for Computing Operating Systems Upcoming Review Reading Great Ideas, Chapter 10

CompSci The Problem  The Raw Machine Provides a Hostile Environment  Imagine program in machine language (on real machine). Machine Language Program for MIPS Machine [ ] 8fa40000 lw $4, 0($29) ; lw $a0, 0($sp) [ ] 27a50004 addiu $5, $29, 4 ; addiu $a1, $sp, 4 # argv [ ] 24a60004 addiu $6, $5, 4 ; addiu $a2, $a1, 4 # envp [ c] sll $2, $4, 2 ; sll $v0, $a0, 2 [ ] 00c23021 addu $6, $6, $2 ; addu $a2, $a2, $v0 [ ] 0c jal 0x [main]; jal main [ ] a ori $2, $0, 10 ; li $v0 10 [ c] c syscall ; syscall  Imagine doing disk I/O directly:  disk description  controlling Heads; timing  keeping track of where things are stored  dealing with Errors

CompSci The Problem  Other I/O  Keyboard  Screen  Communications  Keeping track of memory (RAM)  Multiple tasks  Multiple users  Sharing the CPU  Multiple tasks  Multiple users  The User Interface Problem  For the computer professional only?  For the lay person  The Graphical User Interface o Computation to support this?

CompSci Historical Perspective  Early Years  Early 1960's machines: Almost Bare  Mid 1960's Machines: Early Batch Operating Systems  Multiprogramming Systems  Time Sharing  Lab Computers  Had Major Theme: CPU Time Precious  Ease of use: very low priority  Graphical User Interface too costly (and not yet invented)  This perspective faded with time and began to disappear with advent of the microprocessor: Cheap CPU time.

CompSci Historical Perspective  Later Years  Microprocessor in late 70’s  PC's in early 80’s: Operating Systems for PC  Apple: Macintosh (Xerox PARC)  Workstations o UNIX -- AT&T: License Wars -- LINUX  Major Change: Lower Costs  Whole new audience  User Interface o Essential for non pros o Affordable (cpu cycles to burn)  Whole new competitive environment  Volume!

CompSci Role of the Operating System 1. Processor Management (Multiprogramming = sharing) 1. Several virtual machines 2. I/O Systems 1. Windowing Systems / GUIs 2. File Systems (use of your hard disk) 3. Communications/Networking 3. Memory (RAM) Management 1. Sharing Memory 2. Simulating Additional Memory ( Virtual Memory) 4. Software Environments  Administration/Accounting  Compilers  Tools

CompSci Memory Management  Virtual Memory  Simulate memory using disks  Cache Memory  Simulate faster memory using large slow and small fast memory  Library, bookcase, desktop analogies  Memory Hierarchies  Registers x1  Cache x10 - x100  Main Memory x100 - x1000  Disks x1,000,000  Overhead  Card Catalog analogies  Finding stuff on your desk or bookcase

CompSci Memory Management.2  Historically  Swapping in Time Sharing Systems  Whole user image involved  Paging  Page is conveniently sized block of memory (RAM) o (power of 2)  Physical swapping done page at a time  Protection  Security (write protect)  Confidentiality (read protect)  (lacking on Early machines)

CompSci I/O Systems  Communications/Networking  Extremely important in modern systems  (Dealt with that before)  Graphical User Interfaces (GUI)  X-Windows  Macintosh Desktop  MS Windows  Born in Xerox PARC; Legal Fun  Files Systems  Flat  Hierarchical (Directories/Folders)  Distributed Files Systems o Andrew File System (AFS) (e.g., at OIT) o Network File System (NFS) (e.g., in Computer Science)

CompSci Processor Management  Virtual Machines  True Parallel Processes vs. Simulated Parallel o Note that the “interleaving” is unpredictable  Interrupts o Contrast with “busy waiting”  Process Management  Fairness  Responsiveness  Synchronization Problems  Danger of shared resources o Data: Race conditions o Any Exclusive Resource: Deadlocks

CompSci Synchronization Problems  Race Conditions  Two Processes (A and B) A manages (updates, etc.) “clock” B uses “clock”  Example: clock at 8:59 A: add one to minutes – 8:00 – note carry! B: reads clock 8:00 ! A: add carry to hours 9:00  Due to bad timing, B gets a time almost 1 hour off !  How can we avoid Race Conditions?  Deadlocks  User A needs printer P and modem M  User B needs modem M and printer P  Both are competing for same resources  3 scenarios possible

CompSci Synchronization Problems Scenario 1 Scenario 2Scenario 3 A: get P B: get MA: get P A: get M B: get PB: get M B: get M (wait!) A: get P (wait!)A: get M (wait!) A: process B: process B: get P (wait!) A: release M, P B: release P, M…keep waiting… B: get M A: get P …forever… B: get P A: get M DEADLOCK! B: process A: process  How can we avoid Deadlocks?