Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved. 0-13-142938-8 OPERATING SYSTEMS DESIGN.

Slides:



Advertisements
Similar presentations
OPERATING SYSTEMS Lecturer: Szabolcs Mikulas Office: B38B
Advertisements

Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc
Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved OPERATING SYSTEMS DESIGN.
Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Processes Figure 1-5.
Winter 2005 CMPE 151: Network Administration Lecture 2.
Chapter 1 Introduction
1 Introduction Chapter What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4 Computer hardware review 1.5.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
1 Introduction Chapter What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4 Computer hardware review 1.5.
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
Chapter 1 Introduction 1.1 What is an operating system
1 What is an operating system? CSC330Patricia Van Hise.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 Operating System Organization.
CS 6560 Operating System Design Lecture 1. Overview 1.1 What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4.
OPERATING SYSTEMS DESIGN AND IMPLEMENTATION Third Edition ANDREW S. TANENBAUM ALBERT S. WOODHULL Yan hao (Wilson) Wu University of the Western.
CS 149: Operating Systems January 29 Class Meeting Department of Computer Science San Jose State University Spring 2015 Instructor: Ron Mak
CSC 322 Operating Systems Concepts Lecture - 4: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
1 Operating System Overview. 2 Today’s Objectives Explain the main purpose of operating systems and describe milestones of OS evolution Explain fundamental.
Chapter 1 Introduction 1.1 What is an operating system
ITEC 502 컴퓨터 시스템 및 실습 Chapter 1: Introduction. ITEC 502 컴퓨터 시스템 및 실습 Chapter 1: Introduction Mi-Jung Choi DPNM Lab. Dept. of CSE,
1 Instructor :Erdal Kose Office hours: Tuesday 9:00-9:30 pm. Mail box : 2109 Ingersoll Hall (Erdal ) Web site :
1 Introduction Chapter What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4 Computer hardware review 1.5.
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 E-Main: Phone:
1 Introduction. 2 A computer system consists of –hardware –system programs –application programs.
MODERN OPERATING SYSTEMS Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview Part 2: History (continued)
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
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 Operating Systems: Principles and Practice Cpr E 308.
Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved OPERATING SYSTEMS DESIGN.
A. Frank - P. Weisberg Operating Systems Structure of Operating Systems.
Examples of Operating Systems.
MODERN OPERATING SYSTEMS Chapter 1 Introduction
Copyright ©: Nahrstedt, Angrave, Abdelzaher1 Operating System Overview Tarek Abdelzaher Lawrence Angrave Vikram Adve.
Chapter 1 Introduction  What is an operating system  History of operating systems  The operating system zoo  Computer hardware review  Operating system.
操作系统原理 OPERATING SYSTEM Chapter 1 Introduction 概 述.
MINIX 3 – Introduction Béat Hirsbrunner Lecture 1, 18 September 2012 Main reference Andrew S. Tanenbaum, Albert S. Woodhull Operating Systems : Design.
L ECTURE -6 Topics: Introduction to Operating system. Functions of an Operating system. Classification of Operating systems.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
OS HISTORY Module 1.3 Richard Newman University of Florida.
Chapter 2 Operating System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
10/2/20161 Operating Systems Design (CS 423) Elsa L Gunter 2112 SC, UIUC Based on slides by Roy Campbell, Sam King,
Introduction to Operating Systems Concepts
Operating System Overview
Lecture 3: Basic OS Concepts
Operating System Structure
Applied Operating System Concepts
Evolution of Operating Systems
CASE STUDY 1: Linux and Android
Chapter 1: Introduction
OS Basics Module 1.2 Richard Newman University of Florida.
OPERATING SYSTEMS DESIGN AND IMPLEMENTATION Third Edition ANDREW S
MODERN OPERATING SYSTEMS Third Edition ANDREW S
Lecture Topics: 11/1 General Operating System Concepts Processes
Introduction to Operating Systems
Operating System Structure
Introduction to Operating Systems
Lecture 3: Basic OS Concepts
Introduction to Operating Systems
Operating Systems: A Modern Perspective, Chapter 3
Operating System Introduction
Operating System Concepts
Operating System Concepts
Operating System Introduction
Introduction and Overview
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc.
Presentation transcript:

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved OPERATING SYSTEMS DESIGN AND IMPLEMENTATION Third Edition ANDREW S. TANENBAUM ALBERT S. WOODHULL (With additions for U08225 by F Mitchell) Chapter 1 Introduction

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved The Modern Computer System Figure 1.1 A computer system consists of hardware, system programs, and application programs.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved What Is an Operating System? The operating system has two basic functions of the operating system It is an extended machine or virtual machine – Easier to program than the underlying hardware It is a resource manager – Shares resources in time and space

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Operating System Generations Generation 1 (1945 – 55) Vacuum tubes and plugboards Generation 2 (1955 – 65) Transistors and batch systems Generation 3 (1965 – 80) ICs and multiprogramming Generation 4 (1980 – Present) Personal computers Generation 5 (2000 – Present) Mobile and networked

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Pluggable computers

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Early Batch System (1) Figure 1-2. An early batch system. (a) Programmers bring cards to (b)1401 reads batch of jobs onto tape.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Early Batch System (2) Figure 1-2. An early batch system. (c) Operator carries input tape to (d) 7094 does computing.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Early Batch System (3) Figure 1-2. An early batch system. (e) Operator carries output tape to (f) 1401 prints output.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Early Batch System (4) Figure 1-3. Structure of a typical FMS job.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Multiprogramming Figure 1-4. A multiprogramming system with three jobs in memory.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Main and mini frames Mainframe – very large computer – Still in use today – Used to provide resources to multiple users (multiprogramming) – Now used in a similar role, but also in large compute intensive tasks – Superseded by supercomputer in terms of size Miniframe – A smaller (and cheaper) version of the mainframe – Role now filled by small mainframes and servers

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Personal Computers Dominated by Intel variant CPUs Computers for the novice – more requirements on user friendliness Initial cost, software cost and repair cost more of an issue Focus on applications, not development

U08225 – Introduction to Operating Systems – week 1 lecture Faye Mitchell Mobile computers ● Many of the issues of earlier computers – lack of processing power, space, memory etc. ● Also awkward IO! ● Potential for pervasive and ubiquitous computing ● Often heavily networked

U08225 – Introduction to Operating Systems – week 1 lecture Faye Mitchell Networked computers ● Back to mainframe days? ● Information on demand culture (another strand of ubiquitous computing) ● Computing grids – power and storage on demand for large companies and complex problems ● Cloud computing – virtualisation plus off the shelf PCs = compute power & storage on demand for everybody ● Web 2.0 – media rich highly connected sites ● Rise of social computing

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Some basic concepts Process – a program in execution Memory – an accessible place where data or a process is kept when it is being used File – an organised structure for the storage of a process image or it's data IO device – a piece of (normally) hardware used to interact with the computer

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Processes Figure 1-5. A process tree. Process A created two child processes, B and C. Process B created three child processes, D, E, and F.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Processes Figure Processes have three segments: text, data, and stack. In this example, all three are in one address space, but separate instruction and data space is also supported.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved System Calls (1) Figure 1-9. The MINIX system calls. fd is a file descriptor; and n is a byte count. Process Management

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved System Calls (2) Signals Figure 1-9. The MINIX system calls. fd is a file descriptor; and n is a byte count.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved System Calls (3) File Management Figure 1-9. The MINIX system calls. fd is a file descriptor; and n is a byte count.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved System Calls (4) Dir. & File System Mgmt. Figure 1-9. The MINIX system calls. fd is a file descriptor; and n is a byte count.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved System Calls (5) Protection Figure 1-9. The MINIX system calls. fd is a file descriptor; and n is a byte count.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved System Calls (6) Time Management Figure 1-9. The MINIX system calls. fd is a file descriptor; and n is a byte count.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved The fork Call in the Shell Figure A stripped-down shell. Throughout this book, TRUE is assumed to be defined as 1.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Main OS types (1) Monolithic kernel – Everything is in the same place, spends a lot of time in kernel space – Potentially more efficient, but considerably harder to keep robust – Early Windows Micro kernel – Only key functionality is in kernel space, most is in user space – Considerably more swapping between kernel and user space which takes time, but potentially much more robust – Minix, partially modern windows

U08225 – Introduction to Operating Systems – week 1 lecture Faye Mitchell Main OS types (2) ● Modular kernel ➢ Kernel is configured to have only what is needed – relies on ability to recompile kernel ➢ Half way house between Monolithic and Micro – more efficient than Micro, more stable than Monolithic ➢ Linux

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Operating System Structure Figure The 11 steps in making the system call read(fd, buffer, nbytes).

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved File Systems (1) Figure 1-6. A file system for a university department.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved File Systems (2) Figure 1-7. (a) Before mounting, the files on drive 0 are not accessible. (b) After mounting, they are part of the file hierarchy.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved File Systems (3) Figure 1-8. Two processes connected by a pipe.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Basic Structure for Operating System 1.A main program that invokes the requested service procedure 2.A set of service procedures that carry out the system calls 3.A set of utility procedures that help the service procedures

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Layered Systems (1) Figure A simple structuring model for a monolithic system.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Layering in Practice ● Operating systems normally have a user space mode and a kernel/privilege space mode ● Privileged instructions (ones that change the configuration of the machine) are only executed in kernel space ● Programs that wish to execute a privileged instruction, trap to kernel space

U08225 – Introduction to Operating Systems – week 1 lecture Faye Mitchell Aside - Virtualisation ● Virtualisation is becoming very important even on desktop machines – layering helps here as well ● Intel variant architecture supports 4 rings of privilege ● Ring 0 is where the kernel runs, problems here can crash the machine ● Ring 3 is where user apps run, problems here should not crash the machine ● Conventionally, rings 1 & 2 are not used ● IVT and AMD-V add (incompatible) instructions to the CPU and a new VM control block to create a new ring 1 ● The host operating system can control ring 0, thus protecting the machine, but the VMs can control their own ring 1, thus speeding up access, without compromising security

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Client-Server Model (1) Figure The client-server model.

Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved Client-Server Model (2) Figure The client-server model in a distributed system.

U08225 – Introduction to Operating Systems – week 1 lecture Faye Mitchell Mobile and embedded ● Very big topic at the moment ● We'll look at this a little throughout this module ● We'll look at it in more detail in U08284