Introduction to Operating Systems. Perspective of the Computer. System Software. Indiana University Chen Yu



Similar documents
Chapter 3: Operating-System Structures. Common System Components

Operating System Components

Introduction. General Course Information. Perspectives of the Computer. General Course Information (cont.) Operating Systems 1/12/2005

Operating Systems 4 th Class

Common Operating-System Components

Introduction. What is an Operating System?

Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines

Computer-System Architecture

Chapter 1: Introduction. What is an Operating System?

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

Chapter 3 Operating-System Structures

Operating system Dr. Shroouq J.

Have both hardware and software. Want to hide the details from the programmer (user).

CHAPTER 15: Operating Systems: An Overview

Components of a Computer System

Operating System Structures

Operating Systems. Lecture 03. February 11, 2013

Operating Systems Overview

Page 1 of 5. IS 335: Information Technology in Business Lecture Outline Operating Systems

Review from last time. CS 537 Lecture 3 OS Structure. OS structure. What you should learn from this lecture

Chapter 2: OS Overview

CSE 120 Principles of Operating Systems. Modules, Interfaces, Structure

Chapter 1: Introduction. Chapter 1: Introduction. Operating System Concepts, 7th Edition. Objectives

Operating Systems Prof. Ashok K Agrawala

Types Of Operating Systems

OPERATING SYSTEMS STRUCTURES

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

Chapter 3. Operating Systems

Overview and History of Operating Systems

Lecture 1 Operating System Overview

Overview of Operating Systems Instructor: Dr. Tongping Liu

Operating System Tutorial

CSC 2405: Computer Systems II

OPERATING SYSTEM SERVICES

Process Description and Control william stallings, maurizio pizzonia - sistemi operativi

CHAPTER 1: OPERATING SYSTEM FUNDAMENTALS

Introduction to the NI Real-Time Hypervisor

Contents. Chapter 1. Introduction

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

ELEC 377. Operating Systems. Week 1 Class 3

Computer Science 4302 Operating Systems. Student Learning Outcomes

I/O. Input/Output. Types of devices. Interface. Computer hardware

Chapter 2 System Structures

CPS221 Lecture: Operating System Structure; Virtual Machines

Chapter 1 Computer System Overview

Software design (Cont.)

Virtualization. Pradipta De

Operating Systems: Basic Concepts and History

A Comparison of Distributed Systems: ChorusOS and Amoeba

Software engineering for real-time systems

Fastboot Techniques for x86 Architectures. Marcus Bortel Field Application Engineer QNX Software Systems

1. Computer System Structure and Components

Principles of Operating Systems CS 446/646

Operating Systems. Notice that, before you can run programs that you write in JavaScript, you need to jump through a few hoops first

I/O Device and Drivers

Outline: Operating Systems

Programming for GCSE Topic H: Operating Systems

Computers: Tools for an Information Age

Example of Standard API

Predictable response times in event-driven real-time systems

CS161: Operating Systems

Operating Systems OBJECTIVES 7.1 DEFINITION. Chapter 7. Note:

Components of a Computing System. What is an Operating System? Resources. Abstract Resources. Goals of an OS. System Software

SYSTEM ecos Embedded Configurable Operating System

Chapter 11 I/O Management and Disk Scheduling

Real Time Programming: Concepts

COS 318: Operating Systems. I/O Device and Drivers. Input and Output. Definitions and General Method. Revisit Hardware

Operating System Components and Services

UNIT 1 OPERATING SYSTEM : AN OVERVIEW

Operating Systems Overview As we have learned in working model of a computer we require a software system to control all the equipment that are

Storage. The text highlighted in green in these slides contain external hyperlinks. 1 / 14

How To Understand The Principles Of Operating Systems

Chapter 11: Input/Output Organisation. Lesson 06: Programmed IO

Chapter 3: Operating Systems

Lecture 6: Interrupts. CSC 469H1F Fall 2006 Angela Demke Brown

Chapter 6, The Operating System Machine Level

Chapter 2: Computer-System Structures. Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General System Architecture

Star System Deitel & Associates, Inc. All rights reserved.

How To Write A Windows Operating System (Windows) (For Linux) (Windows 2) (Programming) (Operating System) (Permanent) (Powerbook) (Unix) (Amd64) (Win2) (X

Introduction. System Calls

Objectives. Chapter 2: Operating-System Structures. Operating System Services (Cont.) Operating System Services. Operating System Services (Cont.

Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems

Deciding which process to run. (Deciding which thread to run) Deciding how long the chosen process can run

Operating Systems. Rafael Ramirez (T, S)

OS Concepts and structure

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

Computer Organization. and Instruction Execution. August 22

3 - Introduction to Operating Systems

This tutorial will take you through step by step approach while learning Operating System concepts.

Embedded Systems. 6. Real-Time Operating Systems

Understand Troubleshooting Methodology

From Control Loops to Software

Operating System Overview. Otto J. Anshus

How to Configure Double-Take on Microsoft Exchange Server

Operating Systems PART -A

Devices and Device Controllers

Availability Digest. Raima s High-Availability Embedded Database December 2011

Transcription:

Introduction to Operating Systems Indiana University Chen Yu Perspective of the Computer System Software A general piece of software with common functionalities that support many applications. Example: C compiler shell command line interpreter A window system 1

The Structure of Computer System What does an Operating System do? It is an extended machine: Hides the messy details about hardware resources. Presents users with a resource abstraction that is easy to use. It is a resource manager Allows multiple users / programs to share resources and coordinate the sharing. Abstraction 2

Under the Abstraction Functional complexity A single abstraction over multiple devices Replication -> reliability Resource Sharing Objectives of Resource Sharing Efficiency Fairness Security 3

Specific Types of OS Batch processing Timesharing OS Real-time OS Distributed OS Small Computers Batch Processing Jobs (sequence of OS commands) prepared offline Batch of jobs given to OS at one time OS processes jobs one after the other No human-computer Interaction E.g. running compute-intensive simulations Timesharing Systems Users connect send commands and receive results from consoles. Consoles relay the commands to a big machine. 4

Real-Time Systems Computer is dedicated to a single purpose. It needs to respond to external events in fixed time (e.g. industrial process control, multimedia servers) An area of growing interest Distributed OS Small Computers PDAs, embedded systems, computer sensors became more significant Have an OS, but Not general purpose Limited hardware resources and power PalmOS, Pockt PC(WinCE) 5

Different Issues Timesharing system: scheduling, protection. PC & Wkstation: Human-Computer Interface Distributed OS: client-server model, network protocols. Real-Time OS: RT scheduling Small Computer: Power Management Computer-system Architecture I/O Operations I/O devices are much slower than CPU Synchronous (polling) After I/O starts, busy polling the device status register until it shows the operation completes. Asynchronous (interrupt-driven) After I/O starts, control returns to user program without waiting for I/O completion. Device controller later informs CPU that it has finished its operation by causing an interrupt. When an interrupt occur, current execution is put on hold; the CPU jumps to a service routine called interrupt handler 6

System Protection User programs are generally not trusted. A user program may use unfair amount of resource. A user program may maliciously cause other programs or the OS to fail. Need protection against untrusted user programs; the system must differentiate between two modes of operations: User mode execution of user programs Kernel mode execution of the operating system Hardware support is needed in such protection. Memory Protection Goal of memory protection? A user program can t use arbitrary amount of memory. A user program can t access data belonging to the operating system or other user programs. How to achieve memory protection? Indirect memory access: memory access with a virtual address which needs to be translated into physical address. CPU Protection Goal of CPU protection A user program cannot hold the CPU for ever. Timer interrupts computer after specified period to ensure the OS kernel maintains control. Timer is decremented every clock tick. When timer reaches the value 0, an interrupt occurs. CPU time sharing is implemented in the timer interrupt. 7

Operation System Organization System Components process management memory management I/O system File and storage Networking Process Management A process is a program in execution. A process needs certain resources, including CPU time, memory, files and I/O devices, to accomplish its task. OS responsibilities for process management: Process creation and deletion Process scheduling, suspension, and resumption. Process synchronization, inter-process communication. Memory Management Memory A large array of addressable words or bytes A data repository by the CPU and I/O devices. OS responsibility for memory management: Allocate and deallocate memory space as requested. Keep track of which parts of memory are currently being used and by whom. Efficient utilization when the memory resource is heavily competed. 8

I/O System Management A computer needs I/O to interact with outside world: console/terminal disks Networking The I/O system consists of: A buffer-caching system A general device-driver interface Drivers for specific hardware devices File and Storage Management A file is a collection of information defined by its user. Commonly, both programs and data are stored as files. OS responsibilities for file management: Manipulation of files and directories. Map files onto secondary storage. Os responsibilities for disk management: Free space management and storage allocation. The above two issues are not all always together. Networking A distributed system A collection of processors that do not share memory. Processors are connected through a communication network. Communication takes place using a protocol. A distributed system provides user access to various shared system resources, which allows: Computation speed-up Enhanced reliability. 9