Chapter 2 Introduction to OS Chien-Chung Shen CIS, UD

Slides:



Advertisements
Similar presentations
CS4315A. Berrached:CMS:UHD1 Operating Systems and Computer Organization Chapter 4.
Advertisements

Chapter 15 Address Translation Chien-Chung Shen CIS, UD
Introduction CSCI 444/544 Operating Systems Fall 2008.
Chapter 6 Limited Direct Execution
© 2004, D. J. Foreman 1 O/S Organization. © 2004, D. J. Foreman 2 Topics  Basic functions of an OS ■ Dev mgmt ■ Process & resource mgmt ■ Memory mgmt.
Architectural Support for OS March 29, 2000 Instructor: Gary Kimura Slides courtesy of Hank Levy.
1 School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Dr. Mohamed Hefeeda.
© 2004, D. J. Foreman 1 CS350 Operating Systems. © 2004, D. J. Foreman 2 Administrivia  Assignments ■ Homework on most chapters ■ Approximately 8 lab.
OS Spring’03 Introduction Operating Systems Spring 2003.
1 Last Class: Introduction Operating system = interface between user & architecture Importance of OS OS history: Change is only constant User-level Applications.
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.
OS Organization. OS Requirements Provide resource abstractions –Process abstraction of CPU/memory use Address space Concurrency Thread abstraction of.
OS Spring’04 Introduction Operating Systems Spring 2004.
Operating System Organization
November 1, 2004Introduction to Computer Security ©2004 Matt Bishop Slide #29-1 Chapter 33: Virtual Machines Virtual Machine Structure Virtual Machine.
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.
1 OS & Computer Architecture Modern OS Functionality (brief review) Architecture Basics Hardware Support for OS Features.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 Operating System Organization.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
Virtualization Technology Prof D M Dhamdhere CSE Department IIT Bombay Moving towards Virtualization… Department of Computer Science and Engineering, IIT.
Protection and the Kernel: Mode, Space, and Context.
Introduction and Overview Questions answered in this lecture: What is an operating system? How have operating systems evolved? Why study operating systems?
Chapter 1. Introduction What is an Operating System? Mainframe Systems
Operating System Review September 10, 2012Introduction to Computer Security ©2004 Matt Bishop Slide #1-1.
Chapter 6 Operating System Support. This chapter describes how middleware is supported by the operating system facilities at the nodes of a distributed.
CS533 Concepts of Operating Systems Jonathan Walpole.
CSC 501 Lecture 2: Processes. Process Process is a running program a program in execution an “instantiation” of a program Program is a bunch of instructions.
1 COMPSCI 110 Operating Systems Who - Introductions How - Policies and Administrative Details Why - Objectives and Expectations What - Our Topic: Operating.
Operating Systems ECE344 Ashvin Goel ECE University of Toronto OS Design.
Operating Systems ECE344 Ashvin Goel ECE University of Toronto OS-Related Hardware.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
 Virtual machine systems: simulators for multiple copies of a machine on itself.  Virtual machine (VM): the simulated machine.  Virtual machine monitor.
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 COMPSCI 110 Operating Systems Who - Introductions How - Policies and Administrative Details Why - Objectives and Expectations What - Our Topic: Operating.
Interrupt driven I/O. MIPS RISC Exception Mechanism The processor operates in The processor operates in user mode user mode kernel mode kernel mode Access.
Welcome to CPS 210 Graduate Level Operating Systems –readings, discussions, and programming projects Systems Quals course –midterm and final exams Gateway.
COP 4610 Introduction to Operating Systems. Chapter 1 - Introduction OS - Layer between the hardware and user programs (Figure 1.1) OS - The ultimate.
Lecture Topics: 10/29 Architectural support for operating systems –timers –kernel mode –system calls –protected instructions.
Chapter 4 Process Abstraction Chien-Chung Shen CIS, UD
CS4315A. Berrached:CMS:UHD1 Operating Systems and Computer Organization Chapter 4.
Chapter 2 Introduction to OS Chien-Chung Shen CIS/UD
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
Chapter 6 Limited Direct Execution Chien-Chung Shen CIS/UD
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
INTRODUCTION TO COMPUTERS. A computer system is an electronic device used to input data, process data, store data for later use and produce output in.
Welcome to Intro to Operating Systems Course Website:
1.1 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 1: Introduction What Operating Systems Do √ Computer-System Organization.
Introduction to Operating Systems Concepts
COMPSCI 110 Operating Systems
Introduction to Operating Systems
Applied Operating System Concepts
Chien-Chung Shen CIS/UD
Chapter 1: Introduction
Chapter 3: Windows7 Part 1.
Introduction to Operating Systems
OS Virtualization.
System Calls.
Chapter 15, Exploring the Digital Domain
What is an Operating System?
Architectural Support for OS
Introduction to Operating Systems
CSE 451: Operating Systems Autumn 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 596 Allen Center 1.
CSE 451: Operating Systems Autumn 2001 Lecture 2 Architectural Support for Operating Systems Brian Bershad 310 Sieg Hall 1.
Operating Systems: A Modern Perspective, Chapter 3
Computer System Structures
CSE 451: Operating Systems Winter 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 412 Sieg Hall 1.
Architectural Support for OS
Operating Systems Structure
Advanced OS COMP 755.
Presentation transcript:

Chapter 2 Introduction to OS Chien-Chung Shen CIS, UD

Operating System Goal: make the system easy to use (or run programs) –run many programs at the same time –allow programs to share memory –enable programs to interact with devices –etc. How: virtualization – take a physical resource (e.g., processor, memory, or disk) and transform it into a more general, powerful, and easy-to-use virtual form of itself –refer OS as a virtual machine

Virtual Machine (VM) To allow users to tell OS what to do and thus make use of the features of VM (e.g., run programs, allocate memory, access files), OS provide interfaces (APIs) that can be called –system calls and standard library OS as resource manager –virtualization –concurrency –persistency

Virtualization How to virtualize resources? –policies and mechanisms Virtualize CPU –cpu.c and common.h –./cpu A & ;./cpu B &;./cpu C & Virtualize memory –mem.c (with address-space randomization disabled)

Concurrency Working on many things at once (concurrently) in the same program –OS itself –multithreaded programs –threads.v0.c (race condition) –threads.v1.c (atomic)

Persistence DRAM is volatile Disk (hard drive) and solid-state drive (SSD) File system (the part of OS that manages disk/SSD and files) io.c Sharing of disks

Design Goals of OS Build abstraction Provide high performance and minimize OS overhead Provide protection between applications via isolation Reliability Energy efficiency Security Mobility

System Calls User applications run in user mode which means hardware restricts what applications can do (e.g., I/O requests) A system call transfers control (i.e., jumps) into the OS while simultaneously raising the hardware privilege level (kernel mode) When a system call is initiated (via special hardware instruction trap), hardware transfers control to a prespecified trap handler (that OS set up previously) and simultaneously raises the privilege level to kernel mode When OS is done servicing the request, it passes control back to the user via a special return-from-trap instruction, which reverts to user mode while simultaneously passing control back to where the application left off