OPERATING SYSTEMS Lecturer: Szabolcs Mikulas Office: B38B

Slides:



Advertisements
Similar presentations
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Advertisements

Introduction to Operating Systems
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
So far Binary numbers Logic gates Digital circuits process data using gates – Half and full adder Data storage – Electronic memory – Magnetic memory –
1 Processes and Threads Creation and Termination States Usage Implementations.
Chapter 1 Introduction Copyright © Operating Systems, by Dhananjay Dhamdhere Copyright © Introduction Abstract Views of an Operating System.
Mehdi Naghavi Spring 1386 Operating Systems Mehdi Naghavi Spring 1386.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc
Operating Systems Operating Systems - Winter 2011 Dr. Melanie Rieback Design and Implementation.
Operating Systems Operating Systems - Winter 2012 Dr. Melanie Rieback Design and Implementation.
1 CSE 380 Computer Operating Systems Instructor: Insup Lee University of Pennsylvania Fall 2003 Lecture Note 1: Introduction.
Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved OPERATING SYSTEMS DESIGN.
COMP1214 Systems & Platforms: Operating Systems Concepts Dr. Yvonne Howard – Rikki Prince – 1.
CSC 360- Instructor: K. Wu Overview of Operating Systems.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
1 Processes and Threads Chapter Processes 2.2 Threads 2.3 Interprocess communication 2.4 Classical IPC problems 2.5 Scheduling.
Operating systems course Class 1/spring Teacher: Pekka Skype pmakkone makkonen/24/643/155.
Processes Management.
25 seconds left…...
EEE 435 Principles of Operating Systems Operating System Concepts (Modern Operating Systems 1.5)
Introduction to Operating Systems CS-2301 B-term Introduction to Operating Systems CS-2301, System Programming for Non-majors (Slides include materials.
Enrique Blanco García © 2004 Introduction to the UNIX environment Enrique Blanco Cover from the book Modern operating systems. A. Tanenbaum.
Winter 2005 CMPE 151: Network Administration Lecture 2.
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 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.
O PERATING S YSTEMS BIT OUTLINE Introduction, concepts, review & historical perspective Processes Synchronization Scheduling Deadlock Memory management,
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.
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.
Understanding Operating Systems Flynn & McHoes
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.
Background: Operating Systems Brad Karp UCL Computer Science CS GZ03 / M th November, 2008.
CY2003 Computer Operating Systems Lecture 01 Introduction Abir Hussain (JPB6.33,
1 Operating Systems: Principles and Practice Cpr E 308.
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 an operating system? Tool to make programmer's job easy Resource allocator – Must be fair; not partial to any process – Must discriminate between.
L ECTURE -6 Topics: Introduction to Operating system. Functions of an Operating system. Classification of Operating systems.
Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved OPERATING SYSTEMS DESIGN.
Operating System Overview
Lecture 3: Basic OS Concepts
Lecture 2: Hardware Review
OPERATING SYSTEMS DESIGN AND IMPLEMENTATION Third Edition ANDREW S
MODERN OPERATING SYSTEMS Third Edition ANDREW S
Introduction to Operating Systems
Introduction to Operating Systems
Lecture 2: Hardware Review
Lecture 3: Basic OS Concepts
Operating System Introduction
Chapter-1 Computer is an advanced electronic device that takes raw data as an input from the user and processes it under the control of a set of instructions.
Operating System Introduction
Presentation transcript:

OPERATING SYSTEMS Lecturer: Szabolcs Mikulas Office: B38B E-mail: szabolcs@dcs.bbk.ac.uk URL: http://www.dcs.bbk.ac.uk/~szabolcs/os.html Textbook: A.S. Tanenbaum, Modern Operating Systems, Second edition, Prentice Hall, 2001, ISBN 0-13-031358-0

OUTLINE 1. Introduction 2. Processes and threads 3. Deadlock 4. Memory management 5. Input/output 6. File systems 7. Multimedia operating systems 8. Multiple processor systems 9. Security UNIX and Windows are to be used as running case studies.

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, or virtual, machine provides a simple, high-level abstraction, i.e., hides the “messy details” which must be performed presents user with a virtual machine, easier to use provides services; programs obtain these by system calls It is a resource manager provides orderly and controlled allocation for programs in terms of time and space, multiplexing

History of Operating Systems 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

Second Generation 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

Second Generation (2) Structure of a typical FMS job – 2nd generation

Third Generation Third generation: Multiprogramming Timesharing MULTICS => UNIX

Fourth Generation Fourth generation (1980- ) - Personal computers MS-DOS, Graphical User Interface (GUI), Windows, Network and distributed OSs

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 Monitor Bus Components of a simple personal computer

Processors (a) A three-stage pipeline (b) A superscalar CPU

Memory Typical memory hierarchy numbers shown are rough approximations

Structure of a disk drive Hard Disk Structure of a disk drive

One base-limit pair and two base-limit pairs

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

Structure of a large Pentium system

Processes Program in execution Address space: list of memory locations for read and write - code, data, stack Process table: one entry for each process, contains: list of open files, state UID etc. Communication, scheduling

A Process Tree A created two child processes, B and C B created three child processes, D, E, and F

(a) A potential deadlock. (b) An actual deadlock. Read-write example

Main Memory Holds executing programs Multiple programs - protection Large programs - virtual memory

File system for a university department

Files Abstract model of device independent files Hierarchy, directories, operations Absolute and relative path names - root and working directory Special files (for I/O devices): block s.f. character s.f. Security

Mounting Before mounting, After mounting floppy on b, files on floppy are inaccessible After mounting floppy on b, files on floppy are part of file hierarchy

Two processes connected by a pipe e.g. sort <in|head -30

System Calls Interface between OS and user programs (to perform privileged operations) Machine dependent, but procedure libraries

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

Shell 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 */ }

Link Link(/usr/jim/memo,/usr/ast/note) (a) Two directories before linking /usr/jim/memo to ast's directory (b) The same directories after linking

Mount (a) File system before the mount (b) File system after the mount mount(/dev/fd0,/mnt,0) (a) File system before the mount (b) File system after the mount

Windows System Calls Some Win32 API calls

Monolithic System Simple structuring model for a monolithic system

Structure of the THE operating system Layered System Structure of the THE operating system MULTICS - concentric rings

Structure of VM/370 with CMS Virtual Machines Structure of VM/370 with CMS CMS: Conversational Monitor System VM: Virtual Machine Monitor - multiprogramming MS-DOS on Pentium JVM

Exokernels Similar to VM, but Restriction to allocated resources No need for remap

Client-Server Model Microkernel handles communication provides low-level resource management Cf. Mechanism versus policy

C-S Model in a DS The client-server model in a distributed system