Welcome to Intro to Operating Systems Course Website: https://sites.wustl.edu/shidalj/courses/cse422s/https://sites.wustl.edu/shidalj/courses/cse422s/

Slides:



Advertisements
Similar presentations
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 3 Operating System Organization.
Advertisements

CSC 501 Operating Systems Principles
Introduction CSCI 444/544 Operating Systems Fall 2008.
OS Fall ’ 02 Introduction Operating Systems Fall 2002.
Lecture 1: Introduction CS170 Spring 2015 Chapter 1, the text book. T. Yang.
OS Concepts An Introduction operating systems. At the end of this module, you should have a basic understanding of what an operating system is, what it.
Chapter 6 - Implementing Processes, Threads and Resources Kris Hansen Shelby Davis Jeffery Brass 3/7/05 & 3/9/05 Kris Hansen Shelby Davis Jeffery Brass.
Computer Organization
Operating Systems Who’s in charge in there?. Types of Software Application Software : Does things we want to do System Software : Does things we need.
System Calls 1.
9/14/2015B.Ramamurthy1 Operating Systems : Overview Bina Ramamurthy CSE421/521.
B.Ramamurthy9/19/20151 Operating Systems u Bina Ramamurthy CS421.
Composition and Evolution of Operating Systems Introduction to Operating Systems: Module 2.
Operating Systems TexPREP Summer Camp Computer Science.
Operating Systems ECE344 Ashvin Goel ECE University of Toronto OS-Related Hardware.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: Memory.
Chapter 1: Introduction and History  Where does the operating system fit in a computing system?  What does the operating system achieve?  What are the.
Processes Introduction to Operating Systems: Module 3.
Chapter 2 Introduction to OS Chien-Chung Shen CIS, UD
COP 4610 Introduction to Operating Systems. Chapter 1 - Introduction OS - Layer between the hardware and user programs (Figure 1.1) OS - The ultimate.
1 3 Computing System Fundamentals 3.3 Computer Systems.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
Chapter 2 Introduction to OS Chien-Chung Shen CIS/UD
Virtual Machines Mr. Monil Adhikari. Agenda Introduction Classes of Virtual Machines System Virtual Machines Process Virtual Machines.
Introduction to Operating System. 1.1 What is Operating System? An operating system is a program that manages the computer hardware. It also provides.
Major OS Components CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Introduction to Operating Systems Concepts
Introduction to Operating Systems
Module 3: Operating-System Structures
Applied Operating System Concepts
Operating Systems : Overview
Chien-Chung Shen CIS/UD
Mechanism: Address Translation
Operating System Structure
Chapter 1: Introduction
Operating System Structure
TexPREP Summer Camp Computer Science
Who’s in charge in there?
Operating Systems and Systems Programming
Introduction to Operating Systems
OS Virtualization.
OPERATING SYSTEMS.
Operating Systems : Overview
GEOMATIKA UNIVERSITY COLLEGE CHAPTER 2 OPERATING SYSTEM PRINCIPLES
Chapter 15, Exploring the Digital Domain
Operating Systems Bina Ramamurthy CSE421 11/27/2018 B.Ramamurthy.
Operating Systems : Overview
Operating Systems : Overview
Operating Systems : Overview
Operating Systems : Overview
Operating Systems : Overview
Chapter 2: Operating-System Structures
Operating Systems Lecture 3.
Operating Systems : Overview
Operating Systems : Overview
Operating Systems : Overview
Operating Systems: A Modern Perspective, Chapter 3
Introduction to Computer Systems
Operating Systems : Overview
Operating Systems : Overview
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 2: Operating-System Structures
Mechanism: Address Translation
Chapter 13: I/O Systems.
Lecture Topics: 11/1 Hand back midterms
An Introduction to Operating Systems
Advanced OS COMP 755.
Presentation transcript:

Welcome to Intro to Operating Systems Course Website: Operating Systems: Three Easy Pieces course book Slides are adapted from those created by Youjip Wan, Hanyang University 1

What a happens when a program runs? A running program executes instructions. 1.The processor fetches an instruction from memory. 2.Decode: Figure out which instruction this is 3.Execute: i.e., add two numbers, access memory, check a condition, jump to function, and so forth. 4.The processor moves on to the next instruction and so on. 2

Operating System (OS) Responsible for – Making it easy to run programs – Allowing programs to share memory – Enabling programs to interact with devices 3 OS is in charge of making sure the system operates correctly and efficiently.

Virtualization The OS takes a physical resource and transforms it into a virtual form of itself. Physical resource: Processor, Memory, Disk … – The virtual form is more general, powerful and easy-to-use. – Sometimes, we refer to the OS as a virtual machine. 4

System call System call allows user to tell the OS what to do. – The OS provides some interface (APIs, standard library). – A typical OS exports a few hundred system calls. Run programs Access memory Access devices 5

The OS is a resource manager. The OS manage resources such as CPU, memory and disk. The OS allows – Many programs to run  Sharing the CPU – Many programs to concurrently access their own instructions and data  Sharing memory – Many programs to access devices  Sharing disks 6

Virtualizing the CPU The system has a very large number of virtual CPUs. – Turning a single CPU into a seemingly infinite number of CPUs. – Allowing many programs to seemingly run at once  Virtualizing the CPU 7

Example… 8

Virtualizing Memory The physical memory is an array of bytes. A program keeps all of its data structures in memory. – Read memory (load): Specify an address to be able to access the data – Write memory (store): Specify the data to be written to the given address 9

Virtualizing Memory (Cont.) Each process accesses its own private virtual address space. – The OS maps address space onto the physical memory. – A memory reference within one running program does not affect the address space of other processes. – Physical memory is a shared resource, managed by the OS. 10

Example… 11

The problem of Concurrency The OS is juggling many things at once, first running one process, then another, and so forth. Modern multi-threaded programs also exhibit the concurrency problem. 12

Example… 13

Persistence Devices such as DRAM store values in a volatile. Hardware and software are needed to store data persistently. – Hardware: I/O device such as a hard drive, solid- state drives(SSDs) – Software: File system manages the disk. File system is responsible for storing any files the user creates. 14

Example… 15

Persistence (Cont.) What OS does in order to write to disk? – Figure out where on disk this new data will reside – Issue I/O requests to the underlying storage device File system handles system crashes during write. – Journaling or copy-on-write – Carefully ordering writes to disk 16

Design Goals Build up abstraction – Make the system convenient and easy to use. Provide high performance – Minimize the overhead of the OS. – OS must strive to provide virtualization without excessive overhead. Protection between applications – Isolation: Bad behavior of one does not harm other and the OS itself. 17

Design Goals (Cont.) High degree of reliability – The OS must also run non-stop. Other issues – Energy-efficiency – Security – Mobility – Real-time 18

Next time… Details on virtualization of the CPU 19