Chapter 1 Introduction 1.1 What is an operating system

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.
EEE 435 Principles of Operating Systems Operating System Concepts (Modern Operating Systems 1.5)
Processes and Threads Chapter Processes 2.2 Threads 2.3 Interprocess communication 2.4 Classical IPC problems 2.5 Scheduling.
Enrique Blanco García © 2004 Introduction to the UNIX environment Enrique Blanco Cover from the book Modern operating systems. A. Tanenbaum.
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.
UNIX Chapter 01 Overview of Operating Systems Mr. Mohammad A. Smirat.
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.
Chapter 1 Introduction 1.1 What is an operating system
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,
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.
Ceng Operating Systems 1-1 Chapter 1: Introduction What is the aim of the subject? Why are OSes important? What is an OS? A bit of history Some basic.
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.
1 Chapter 1: Introduction What is the aim of the subject? What is the aim of the subject? Why are OSes important? Why are OSes important? What is an OS?
O PERATING S YSTEMS BIT OUTLINE Introduction, concepts, review & historical perspective Processes Synchronization Scheduling Deadlock Memory management,
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
Principles of Operating System 2014
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.
CS450/550 P&T.1 Adapted from MOS2E UC. Colorado Springs CS450/550 Operating Systems Lecture 1 Introductions to OS and Unix Palden Lama Department of Computer.
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,
Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007.
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment.
1 Operating System Overview. 2 Today’s Objectives Explain the main purpose of operating systems and describe milestones of OS evolution Explain fundamental.
Operating Systems: History, Hardware & Concepts Ch Tuesday, January 16, 2007.
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.
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 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.
1 Pertemuan 3 Konsep Sistem Operasi Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
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.
OS, , Part I Operating - System Structures Department of Computer Engineering, PSUWannarat Suntiamorntut.
Copyright ©: University of Illinois CS 241 Staff1 Operating Systems Orientation.
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 概 述.
What is a Process ? A program in execution.
What is an operating system? Tool to make programmer's job easy Resource allocator – Must be fair; not partial to any process – Must discriminate between.
Operating Systems: History, Hardware & Concepts Ch 1.4 & 1.5 Thursday, January 18, 2007.
Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved OPERATING SYSTEMS DESIGN.
10/2/20161 Operating Systems Design (CS 423) Elsa L Gunter 2112 SC, UIUC Based on slides by Roy Campbell, Sam King,
Design of Operating Systems
Operating System Overview
Lecture 3: Basic OS Concepts
Avani R.Vasant V.V.P. Engineering College
Lecture 2: Hardware Review
OPERATING SYSTEMS DESIGN AND IMPLEMENTATION Third Edition ANDREW S
MODERN OPERATING SYSTEMS Third Edition ANDREW S
System Calls.
Introduction to Operating Systems
Introduction to Operating Systems
Lecture 2: Hardware Review
Lecture 3: Basic OS Concepts
Introduction to Operating Systems
Presentation transcript:

Chapter 1 Introduction 1.1 What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4 Computer hardware review 1.5 Operating system concepts 1.6 System calls 1.7 Operating system structure

Introduction A computer system consists of hardware system programs application programs

What is an Operating System It is an extended machine Hides the messy details which must be performed Presents user with a virtual machine, easier to use It is a resource manager Each program gets time with the resource Each program gets space on the resource

History of Operating Systems (1) First generation 1945 - 1955 vacuum tubes, plug boards Second generation 1955 - 1965 transistors, batch systems Third generation 1965 – 1980 ICs and multiprogramming Fourth generation 1980 – present personal computers

History of Operating Systems (2) Early batch system bring cards to 1401 read cards to tape put tape on 7094 which does computing put tape on 1401 which prints output

History of Operating Systems (3) Structure of a typical FMS job – 2nd generation

History of Operating Systems (4) Multiprogramming system three jobs in memory – 3rd generation

The Operating System Zoo Mainframe operating systems Server operating systems Multiprocessor operating systems Personal computer operating systems Real-time operating systems Embedded operating systems Smart card operating systems

Computer Hardware Review (1) Monitor Bus Components of a simple personal computer

Computer Hardware Review (2) (a) A three-stage pipeline (b) A superscalar CPU

Computer Hardware Review (3) Typical memory hierarchy numbers shown are rough approximations

Computer Hardware Review (4) Structure of a disk drive

Computer Hardware Review (5) One base-limit pair and two base-limit pairs

Computer Hardware Review (6) (b) (a) Steps in starting an I/O device and getting interrupt (b) How the CPU is interrupted

Computer Hardware Review (7) Structure of a large Pentium system

Operating System Concepts (1) - Processes A process is a program in execution Swapping of a process – Process table entry System calls to create and terminate processes System calls to allocate/deallocate memory System calls for communication - signals

Operating System Concepts (2) - Processes A process tree A created two child processes, B and C B created three child processes, D, E, and F

Operating System Concepts (3) -Deadlocks (a) A potential deadlock. (b) an actual deadlock.

Operating System Concepts (4) - Files Present the programmer with nice, clean, abstract, device-independent files. Concept of directory to group files together System calls to create/remove directories and create/remove files. Hierarchies. Process trees != Directories A file can be specified by a path name: absolute (from root), relative (from current working directory).

Operating System Concepts (5) - Files File system for a university department

Operating System Concepts (6) - Files Protection of files and directories, e.g. UNIX the rwx bits: 9 bits (owner/group/others) rwxr-xr-- File Descriptor: a number assigned to a file. Mounting file systems. Special files: block special files, character special files – standard input (fd=0), standard output (fd=1), standard error (fd=2).

Operating System Concepts (7) - Files Before mounting, files on floppy are inaccessible After mounting floppy on b, files on floppy are part of file hierarchy

Operating System Concepts (8) - Pipes Two processes connected by a pipe. Read/Write - transparent for processes.

Operating System Concepts (8) - Shell The shell is a program that acts as an interface between the user and the OS. Unix: several shells (e.g. csh, ksh). MSDOS: command prompt. Prompt, process, std input, output, creates processes.

Steps in Making a System Call There are 11 steps in making the system call read (fd, buffer, nbytes)

Some System Calls For Process Management

Some System Calls For File Management

Some System Calls For Directory Management

Some System Calls For Miscellaneous Tasks

System Calls (1) A stripped down shell: while (TRUE) { /* repeat forever */ type_prompt( ); /* display prompt */ read_command (command, parameters) /* input from terminal */ if (fork() != 0) { /* fork off child process */ /* Parent code */ waitpid( -1, &status, 0); /* wait for child to exit */ } else { /* Child code */ execve (command, parameters, 0); /* execute command */ }

System Calls (2) Processes have three segments: text, data, stack

System Calls (3) (a) Two directories before linking /usr/jim/memo to ast's directory (b) The same directories after linking

System Calls (4) (a) File system before the mount (b) File system after the mount

System Calls (5) Some Win32 API calls

Operating System Structure Monolithic Layered Virtual Machines Client-Server

Operating System Structure (1) User program 1 Kernel call User program 2 4 1 Service procedure 3 2 dispatch table

Operating System Structure (1) Simple structuring model for a monolithic system

Operating System Structure (2) Structure of the THE operating system

Operating System Structure (3) Structure of VM/370 with CMS

Operating System Structure (4) The client-server model

Operating System Structure (5) The client-server model in a distributed system

Metric Units The metric prefixes