Operating System Structure

Similar documents
Operating-System Structures

Chapter 3: Operating-System Structures

OS and Computer Architecture. Chapter 3: Operating-System Structures. Common System Components. Process Management

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

Operating System: Chap2 OS Structure. National Tsing-Hua University 2016, Fall Semester

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

Chapter 3: Operating-System Structures

Operating-System Structures

Chapter 2: Operating-System Structures

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

Chapter 3: Operating-System Structures

CSC Operating Systems Spring Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. January 17 th, 2007.

Announcements. Operating System Structure. Roadmap. Operating System Structure. Multitasking Example. Tevfik Ko!ar

Chapter 2: Operating-System Structures

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

Chapter 2: Operating-System Structures

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

Chapter 2: Operating-System

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

Chapter 2: Operating-System Structures

NON SCHOLAE, SED VITAE

Operating-System Structures

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

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

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

Chapter 2. Operating-System Structures

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

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

Four Components of a Computer System

Module 3: Operating-System Structures. Common System Components

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

The Challenges of X86 Hardware Virtualization. GCC- Virtualization: Rajeev Wankar 36

CS307: Operating Systems

Lecture 2 Operating System Structures (chapter 2)

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

Chapter 2: System Structures

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

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

Operating System Architecture. CS3026 Operating Systems Lecture 03

OPERATING SYSTEMS UNIT - 1

EEE 435 Principles of Operating Systems

CSE 4/521 Introduction to Operating Systems

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

Chapter 2: Operating-System Structures

Chapter 2: OS Structures

Introduction to Operating Systems (Part III)

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

Chapter 2: System Structures

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

Module 1 Introduction/OS Overview

Operating Systems. Designed and Presented by Dr. Ayman Elshenawy Elsefy

Chapter 2 Operating-System Structures

Full file at

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

Module 3: Operating-System Structures

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

CSCI 6730 / 4730 Operating Systems. Key Questions in System Design. Review: What is An Operating System? Key Points

! Software ( kernel ) that runs at all times. ! OS performs two unrelated functions: Maria Hybinette, UGA. user! 1! Maria Hybinette, UGA. user! n!

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.

OS concepts and structure. q OS components & interconnects q Structuring OSs q Next time: Processes

Real Time and Embedded Systems. by Dr. Lesley Shannon Course Website:

Introduction to OS (cs1550)

UNIT 2. OPERATING SYSTEM STRUCTURES

Operating System Structure

Operating- System Structures

6.033 Spring Lecture #6. Monolithic kernels vs. Microkernels Virtual Machines spring 2018 Katrina LaCurts

Threads, SMP, and Microkernels. Chapter 4

Operating System Services

Introduction: Context Switch

Chapter 4: Threads. Chapter 4: Threads. Overview Multicore Programming Multithreading Models Thread Libraries Implicit Threading Threading Issues

OPERATING SYSTEMS: Lesson 1: Introduction to Operating Systems

Lecture Topics. Announcements. Today: Operating System Overview (Stallings, chapter , ) Next: Processes (Stallings, chapter

Operating Systems Overview. Chapter 2

Operating System Structure

OPERATING SYSTEM. Chapter 4: Threads

CS420: Operating Systems

Operating Systems. Operating System Structure. Lecture 2 Michael O Boyle

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

Roadmap. Tevfik Ko!ar. CSC Operating Systems Fall Lecture - VII CPU Scheduling - II. Louisiana State University

Roadmap. Multilevel Queue Scheduling. Multilevel Queue. Example of Multilevel Feedback Queue. Multilevel Feedback Queue. Tevfik Ko!

CSCE-313 Introduction to Computer Systems

Structure of OS. After knowing a bit of OS Review of different computing environment

Lecture 5: February 3

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

Chapter 2 Operating System Structures

SPIN Operating System

Module 1: Virtualization. Types of Interfaces

csci3411: Operating Systems

Chapter 4: Threads. Overview Multithreading Models Thread Libraries Threading Issues Operating System Examples Windows XP Threads Linux Threads

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

Chapter 2. Operating System Structures

CSCI 8530 Advanced Operating Systems. Part 19 Virtualization

CSCE 313 Introduction to Computer Systems. Instructor: Dezhen Song Spring 2015

OS Structures. ICS332 Operating Systems

Process Description and Control

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

CSE 120 Principles of Operating Systems

Transcription:

CSE325 Principles of Operating Systems Operating System Structure David Duggan dduggan@sandia.gov January 24, 2013

A View of Operating System Services 1/24/13 CSE325 - OS Structure 2

Operating System Design and Implementation Affected by choice of hardware, type of system User goals and System goals User goals operating system should be convenient to use, easy to learn, reliable, safe, secure, and fast System goals operating system should be easy to design, implement, and maintain, as well as flexible, reliable, errorfree, secure, and efficient Important principle is separation Policy: What will be done? Mechanism: How to do it? The separation of policy from mechanism is a very important principle, it allows maximum flexibility if policy decisions are to be changed later 1/24/13 CSE325 - OS Structure 3

Operating Systems Structures Structure/Organization/Layout of OSs: 1. Monolithic (one unstructured program) 2. Layered 3. Microkernel 4. Virtual Machines The role of Virtualization CSE325 - OS Structure

Monolithic Operating System CSE325 - OS Structure 1/24/13 5

Monolithic OS Basic Structure Application programs that invoke the requested system services. A set of system services that carry out the operating system procedures/calls. A set of utility procedures that help the system services. 1/24/13 CSE325 - OS Structure 6

MS-DOS System Structure MS-DOS written to provide functionality in the least space: not divided into modules (monolithic). Although MS-DOS has some structure, its interfaces and levels of functionality are not well separated. CSE325 - OS Structure

MS-DOS Layer Structure 1/24/13 8

UNIX System Structure UNIX limited by hardware functionality, the original UNIX operating system had limited structuring. The UNIX OS consists of two separable parts The kernel Consists of everything below the system-call interface and above the physical hardware Provides the file system, CPU scheduling, memory management, and other operating-system functions; a large number of functions for one level Systems programs 1/24/13 CSE325 - OS Structure 9

Traditional UNIX System Structure

Traditional UNIX Kernel [Bach86]

Layered Approach The operating system is divided into a number of layers (levels), each built on top of lower layers. The bottom layer (layer 0) is the hardware; the highest (layer N) is the user interface. With modularity, layers are selected such that each uses functions (operations) and services of only lower-level layers. CSE325 - OS Structure

Layered Operating System 1/24/13 13

Operating System Layers CSE325 - OS Structure 1/24/13 14

Older Windows System Layers 15

Microkernel System Structure Move as much functionality as possible from the kernel into user space. Only a few essential functions in the kernel: primitive memory management (address space) I/O and interrupt management Inter-Process Communication (IPC) basic scheduling Other OS services are provided by processes running in user mode (vertical servers): device drivers, file system, virtual memory 1/24/13 CSE325 - OS Structure 16

Layered vs. Microkernel Architecture 17

Microkernel System Structure Communication takes place between user modules using message passing Benefits: Easier to extend a microkernel Easier to port the operating system to new architectures More reliable (less code is running in kernel mode) More secure Detriments: Performance overhead of user space to kernel space communication CSE325 - OS Structure

Microkernel Operating System CSE325 - OS Structure 1/24/13

Benefits of a Microkernel Organization Extensibility/Reliability modular design easier to extend a microkernel more reliable (less code is running in kernel mode) more secure (less code to be validated in kernel) small microkernel can be rigorously tested. Portability changes needed to port the system to a new processor is done in the microkernel, not in the other services. 1/24/13 CSE325 - OS Structure 20

Mach 3 Microkernel Structure 1/24/13 CSE325 - OS Structure 21

Mac OS X Structure 1/24/13 CSE325 - OS Structure 22

Windows NT Client-Server Structure 1/24/13 CSE325 - OS Structure 23

Windows NT 4.0 Architecture

Structure of the MINIX 3 System

Kernel Modules Most modern operating systems implement kernel modules Uses object-oriented approach Each core component is separate Each talks to the others over known interfaces Each is loadable as needed within the kernel Overall, similar to layers but more flexible 1/24/13 CSE325 - OS Structure 26

Solaris Modular Approach CSE325 - OS Structure 1/24/13 27

XP Architecture

Virtual Machines A virtual machine takes the layered approach to its logical next step. It treats hardware and the operating system kernel as though they were all hardware A virtual machine provides an interface identical to the underlying bare hardware The operating system host creates the illusion that a process has its own processor (and virtual memory) Each guest provided with a (virtual) copy of underlying computer 1/24/13 CSE325 - OS Structure 29

Virtual Machines (Cont.) Non-virtual Machine" Virtual Machine" (a) Non-virtual machine (b) virtual machine 1/24/13 CSE325 - OS Structure 30

Testing a new Operating System

Integrating two Operating Systems

The Role of Virtualization (a) General organization between a program, interface, and system. (b) General organization of virtualizing system A on top of system B. 33

Java Virtual Machine Compiled Java programs are platform-neutral bytecodes executed by a Java Virtual Machine (JVM). JVM consists of: - class loader - class verifier - runtime interpreter Just-In-Time (JIT) compilers increase performance. CSE325 - OS Structure

The Java Virtual Machine 1/24/13 35

Hypervisor/VMM 1/24/13 CSE325 - OS Structure 36

Types of Hypervisors (a) A type 1 hypervisor. (b) A type 2 hypervisor 1/24/13 CSE325 - OS Structure 37

Para- vs. Full-virtualization Presents guest with system similar but not identical to hardware Guest must be modified to run on paravirtualized hardware Guest can be an OS, or in the case of Solaris 10 applications running in containers Full-virtualization: unmodified guest OSes 1/24/13 CSE325 - OS Structure 38