CS Operating Systems

Similar documents
CSE 4/521 Introduction to Operating Systems

The Slide does not contain all the information and cannot be treated as a study material for Operating System. Please refer the text book for exams.

Four Components of a Computer System

Chapter 2 Operating-System Structures

Operating System Services. User Services. System Operation Services. User Operating System Interface - CLI. A View of Operating System Services

Today: Computer System Overview (Stallings, chapter ) Next: Operating System Overview (Stallings, chapter ,

Module 1 Introduction/OS Overview

Operating System Architecture. CS3026 Operating Systems Lecture 03

Lecture 2 - Fundamental Concepts

Operating-System Structures

TDDI04, K. Arvidsson, IDA, Linköpings universitet Operating System Structures. Operating System Structures Overview. Operating System Services

What are some common categories of system calls? What are common ways of structuring an OS? What are the principles behind OS design and

Operating Systems Course 2 nd semester 2016/2017 Chapter 1: Introduction

Operating Systems (2INC0) 2018/19. Introduction (01) Dr. Tanir Ozcelebi. Courtesy of Prof. Dr. Johan Lukkien. System Architecture and Networking Group

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

PG-TRB COMPUTER INSTRUCTOR OPERATING SYSTEMS

Often, more information is required when designing system call Information varies according to OS and types of system call

Chapter 2. Operating-System Structures

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

Operating System Concepts Rab Nawaz Khan Jadoon

9/19/18. COS 318: Operating Systems. Overview. Important Times. Hardware of A Typical Computer. Today CPU. I/O bus. Network

Operating Systems. I. Introduction. Eurecom

Computer System Architecture. CMPT 300 Operating Systems I. Summer Segment 3: Computer System Architecture. Melissa O Neill

Chapter 2: Operating-System Structures

CHAPTER 2: SYSTEM STRUCTURES. By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

Chapter 2: Operating-System Structures

COS 318: Operating Systems

COS 318: Operating Systems

Operating System. Operating Systems Structure Chapter 2. Services Provided by the OS. Evolution of an Operating System

Spring It takes a really bad school to ruin a good student and a really fantastic school to rescue a bad student. Dennis J.

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edition

OPERATING SYSTEMS UNIT - 1

Distributed Systems Operation System Support

Interrupts and System Calls

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures

CPSC 341 OS & Networks. Introduction. Dr. Yingwu Zhu

Operating System Review

Kernel Types Simple OS Examples System Calls. Operating Systems. Autumn CS4023

Hardware OS & OS- Application interface

CS420: Operating Systems

Topics: Early systems and OS overview Skim Chapters 1-2 of SGG Read Chapter 1 of USP CS 3733 Operating Systems

The Lesson Plan of OS. The syllabus of OS. Access the lesson plan and syllabus at

Roadmap. Tevfik Koşar. CSE 421/521 - Operating Systems Fall Lecture - II OS Structures. University at Buffalo. OS Design and Implementation

OS Design Approaches. Roadmap. System Calls. Tevfik Koşar. Operating System Design and Implementation. CSE 421/521 - Operating Systems Fall 2013

Operating System Structure

Reserves time on a paper sign-up sheet. Programmer runs his own program. Relays or vacuum tube hardware. Plug board or punch card input.

Part I Overview Chapter 1: Introduction

Chapter 2: Operating-System Structures. Operating System Concepts Essentials 8 th Edition

OPERATING SYSTEMS. Prescribed Text Book Operating System Principles, Seventh Edition By Abraham Silberschatz, Peter Baer Galvin and Greg Gagne

OPERATING SYSTEMS Lecture Notes. Prepared by K.Rohini, Assistant Professor, CSE Department, GVPCEW.

Chapter 2: Operating-System

Chapter 2: Operating-System Structures. Chapter 2: Operating-System Structures. Objectives. Operating System Services

Operating Systemss and Multicore Programming (1DT089)

Protection and System Calls. Otto J. Anshus

Operating System Structure

To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization

Operating System Services

Architectural Support for Operating Systems. Jinkyu Jeong ( Computer Systems Laboratory Sungkyunkwan University

Part I Introduction Hardware and OS Review

ECE397A Operating Systems. Chapter 1: Introduction

Processes. CS3026 Operating Systems Lecture 05

Operating Systems CS3502 Spring 2018

Chapter 3: Operating-System Structures

OS Design Approaches. Roadmap. OS Design Approaches. Tevfik Koşar. Operating System Design and Implementation

Chapter 2: System Structures

Chapter 2: System Structures

Types and Functions of Win Operating Systems

Lecture 1 Introduction (Chapter 1 of Textbook)

Overview of Operating Systems

CSC Operating Systems Fall Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. August 27 th, 2009.

Announcements. Computer System Organization. Roadmap. Major OS Components. Processes. Tevfik Ko!ar. CSC Operating Systems Fall 2009

CS 550 Operating Systems Spring Operating Systems Overview

OS Structure. Kevin Webb Swarthmore College January 25, Relevant xkcd:

What we saw. Desarrollo de Aplicaciones en Red. 1. OS Design. 2. Service description. 1.1 Operating System Service (1)

Last class: OS and Architecture. OS and Computer Architecture

Last class: OS and Architecture. Chapter 3: Operating-System Structures. OS and Computer Architecture. Common System Components

COS 318: Operating Systems. Overview. Andy Bavier Computer Science Department Princeton University

CSC 453 Operating Systems

Architectural Support for Operating Systems

Inf2C - Computer Systems Lecture 16 Exceptions and Processor Management

Objectives. Chapter 2: Operating-System Structures. 2.1 Operating System Services

CS3600 SYSTEMS AND NETWORKS

Chapter 1: Introduction

CS370 Operating Systems

Operating- System Structures

EECS 3221 Operating System Fundamentals

Overview of Operating Systems

EECS 3221 Operating System Fundamentals

Topics. Operating System. What is an Operating System? Let s Get Started! What is an Operating System? Where in the Book are we?

Last time: introduction. Networks and Operating Systems ( ) Chapter 2: Processes. This time. General OS structure. The kernel is a program!

Introduction CHAPTER. Review Questions

CSE 120 Principles of Operating Systems

Embedded Linux Architecture

CSE Opera+ng System Principles

Last 2 Classes: Introduction to Operating Systems & C++ tutorial. Today: OS and Computer Architecture

Virtual Memory. Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University

Xen and the Art of Virtualization. Nikola Gvozdiev Georgian Mihaila

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

Transcription:

CS 447 - Operating Systems Syllabus Assignments -- Uses Blitz (facultyweb.cs.wwu.edu/~phil/classes/blitz) Environment UNIX (Linux, OS X, NetBSD, FreeBSD...) Should be the same since Blitz is a Virtual Machine Blitz uses a language called "kpl" Reading the book... you should do it! What is an operating system? Hardware manager Allows "user" (application) programs to utilize the hardware Two Views: User view: "Abstract machine" System View: glue between Abstract machine and real machine

Introduction (Chapt 1 continued) Computer systems architecture... CPUs, single, multiple (SMP, parallel, distributed, clusters) Memory Hierarchy: registers, cache, main memory, SSD, HardDisk,... I/O Devices: Disks, Tape, USB, video,... Other: interrupts, timers,... Primary Hardware Mechanism Dual Mode: supervisor (system, privileged) vs user CPU hardware operation state User mode provides restriction of use of hardware Methods to switch between the two

Other issues and abstractions Processes Abstraction for code execution Uses memory and Dual Mode mechanisms Other issues Memory Management Storage Management Caching Protection and Security Networking and Distributed Systems Special Purpose systems: real time, multimedia, handheld Open Source Operating Systems Linux -- Senior CS Major started it... BSD -- Berkeley Computer Science Research Group Open Solaris -- recent open source OS, but now discontinued openindiana, freertos,... more open source OSes.

Operating System Structures (Ch 2) Services Program Execution I/O operations File systems -- data storage Communications -- (process to process, network...) Error Detection Resource Allocation (memory, disk, cpu time,...) Accounting Protection and Security User Interface? Some by the OS: e.g. Windows Some not by the OS: UNIX GUI vs Command Line

Complete OS distributions have more than OS code Kernel: the actual OS itself Utilities: User land code to make things work UNIX kernel alone is rather useless! Linux distribution Linux Kernel (essentially same for all distros) GNU utilities Other programs Each distro has a different set/ordering BSD distributions... Kernel -- unique to the xxxbsd Core Utilities 3rd party Utilities (e.g. NetBSD pkgsrc, FreeBSD Ports)

System Calls The method a User land program requests services from the kernel Syscall API (Application Programming Interface) Transition from "User mode" to "kernel mode" Controlled entry into the kernel Types of system calls (see p67 for examples) Process Control File Management Device Management Information maintenance (time of day, getpid(),...) Communications... Library Routines Often supplied as part of the Distro/OS Integrated into API

Operating System Design and Implementation Design Goals kind of OS -- batch, real time, time sharing, mobile, embedded, parallel... mechanisms and policies -- separation policy regardless of mechanism mechanism how to implement policy implementation Choice of programming language... Operating System General Structures Simple Structure (aka the big mess) Layered approach (software belongs to a specific layer) Microkernel and "servers", message passing Modules (aka object oriented)

Virtual Machines Experiment with OSes (eg Blitz) VM can provided idealized machines Abstract VMs (java VM,...) Helps with OS debugging Slow down the machine Simulation can make things repeatable Real OS debugging? Windows -- second machine as debugger Kernel debuggers kernel dumps (blue screen or panic)

System boot... How?

System boot... How? (page 2) Turn on, enter program via buttons, push "run button" Basic Binary Loader, read "paper tape" or "mag tape"

Todays machines -- Boot process Power up starts running at location 0. Hardware typically forces a jump to a ROM image ROM has "machine monitor" program May look for OS/Boot code on a Disk, net,... Blitz? "Power On Reset" exception Loads PC with the value 0 Sets status to System mode, no memory translation, no interrupts. "memory" can be loaded before the "Power On Reset" Execution then executes the first instruction in memory... This is normally a "jump label" instruction