Classic Systems: Unix and THE Presented by Hakim Weatherspoon.

Slides:



Advertisements
Similar presentations
Bab 14 IMPLEMENTASI TEORI SISTEM OPERASI. SISTEM UNIX.
Advertisements

File Systems.
EEE 435 Principles of Operating Systems Operating System Concepts (Modern Operating Systems 1.5)
16 UNIX and Linux. Fig. 16.1: The shell and the kernel.
CLASSIC SYSTEMS: UNIX AND MACH Ken Birman CS6410.
Classic Systems: Unix and THE Presented by Hakim Weatherspoon.
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
1 UNIX 1 History of UNIX 2 Overview of UNIX 3 Processes in UNIX 4 Memory management in UNIX 5 The UNIX file system 6 Input/output in UNIX.
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
JMS 1 CSE 350, Spring 2001 The Unix Time-sharing System Chuck Davin Software Design & Engineering CSE 350 Spring 2001.
CS533 - Concepts of Operating Systems
Computer Organization and Architecture
OPERATING SYSTEMS Introduction
Silberschatz, Galvin and Gagne  Operating System Concepts Common OS Components Process Management Memory Management File Management I/O System.
1 Process Description and Control Chapter 3 = Why process? = What is a process? = How to represent processes? = How to control processes?
Linux Operating System
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
Process. Process Concept Process – a program in execution Textbook uses the terms job and process almost interchangeably A process includes: – program.
Classic Systems: Unix and THE Presented by Hakim Weatherspoon.
Operating Systems.  Operating System Support Operating System Support  OS As User/Computer Interface OS As User/Computer Interface  OS As Resource.
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
Chapter 1. Introduction What is an Operating System? Mainframe Systems
UNIX OS By: Desmond Dagg Alannah Storm Mullins Carl Kavanagh Gareth Dunne Behzad Sanehi.
Operating System It is the interface between user (application programs) and hardware. It is a program that controls the execution of application programs.
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.
Classic Operating Systems: Unix and Mach
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
Chapter 1 Introduction 1.1 What is an operating system
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
1 Pertemuan 3 Konsep Sistem Operasi Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
Agenda Getting Started: Using Unix Unix Structure / Features Elements of the Unix Philosophy Unix Command Structure Command Line Editing Online Unix Command.
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
Operating System Structure A key concept of operating systems is multiprogramming. –Goal of multiprogramming is to efficiently utilize all of the computing.
CSE 5343/7343UNIX Case Study1 CSE 5343/7343 Fall 2006 Case Studies UNIX History/Processes.
We will focus on operating system concepts What does it do? How is it implemented? Apply to Windows, Linux, Unix, Solaris, Mac OS X. Will discuss differences.
UNIX Unit 1- Architecture of Unix - By Pratima.
The Structure of the “THE”- Multiprogramming System Edsger W. Dijkstra Presented by: Jin Li.
UNIX & Windows NT Name: Jing Bai ID: Date:8/28/00.
Chapter 3.7 Segmentation. Memory allocation as a concept ● This presentation is about memory management specifically about memory segmentation and paging.
Copyright © Curt Hill Operating Systems An Introductory Overview.
The UNIX Time-Sharing System Mosharaf Chowdhury EECS 582 – W1611/11/16.
CS533 Concepts of Operating Systems Jonathan Walpole.
1 Process Description and Control Chapter 3. 2 Process A program in execution An instance of a program running on a computer The entity that can be assigned.
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: Summary INF1060: Introduction to Operating Systems and Data Communication.
Concepts and Structures. Main difficulties with OS design synchronization ensure a program waiting for an I/O device receives the signal mutual exclusion.
MINIX Presented by: Clinton Morse, Joseph Paetz, Theresa Sullivan, and Angela Volk.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
1 Module 3: Processes Reading: Chapter Next Module: –Inter-process Communication –Process Scheduling –Reading: Chapter 4.5, 6.1 – 6.3.
CLASSIC SYSTEMS: UNIX AND THE Hakim Weatherspoon CS
A LECTURE NOTE.
Paper Discussions Karthik Dantu Steve Ko.
Classic Systems: Unix and THE
Operating System Structure
FileSystems.
Chapter 9: Virtual Memory
KERNEL ARCHITECTURE.
The UNIX Time-Sharing System
Operating Systems.
Classic Systems: Unix and THE
Operating Systems Lecture 1.
Introduction to Operating Systems
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
Introduction to Operating Systems
The UNIX Time Sharing System
Presentation transcript:

Classic Systems: Unix and THE Presented by Hakim Weatherspoon

The UNIX Time-Sharing System Dennis Ritchie and Ken Thompson Background of authors at Bell Labs –Both won Turing Awards in 1983 Dennis Ritchie –Key developer of The C Programming Lanuage, Unix, and Multics Ken Thompson –Key developer of the B programming lanuage, Unix, Multics, and Plan 9 –Also QED, ed, UTF-8

The UNIX Time-Sharing System Dennis Ritchie and Ken Thompson

Classic system and paper –described almost entirely in 10 pages Key idea –elegant combination of a few concepts that fit together well

System features Time-sharing system Hierarchical file system Device-independent I/O Shell-based, tty user interface Filter-based, record-less processing paradigm

Version 3 Unix 1969: Version 1 ran PDP : Version 3 Ran on PDP-11’s –Costing as little as $40k! < 50 KB 2 man-years to write Written in C

File System Ordinary files (uninterpreted) Directories (protected ordinary files) Special files (I/O)

Directories root directory path names rooted tree current working directory back link to parent multiple links to ordinary files

Special Files Uniform I/O model –Each device associated with at least one file –But read or write of file results in activation of device Advantage: Uniform naming and protection model –File and device I/O are as similar as possible –File and device names have the same syntax and meaning, can pass as arguments to programs –Same protection mechanism as regular files

Removable File System Tree-structured Mount’ed on an ordinary file –Mount replaces a leaf of the hierarchy tree (the ordinary file) by a whole new subtree (the hierarchy stored on the removable volume) –After mount, virtually no distinction between files on permanent media or removable media

Protection User-world, RWX bits set-user-id bit super user is just special user id

Uniform I/O Model open, close, read, write, seek –Uniform calls eliminates differences between devices other system calls –close, status, chmod, mkdir, ln bytes, no records

File System Implementation table of i-nodes path name scanning mount table buffered data write-behind

I-node Table short, unique name that points at file info. allows simple & efficient fsck cannot handle accounting issues File nameInode# Inode

Processes and images text, data & stack segments process swapping pid = fork() pipes exec(file, arg1,..., argn) pid = wait() exit(status)

The Shell cmd arg1... argn stdio & I/O redirection filters & pipes multi-tasking from a single shell shell is just a program Trivial to implement in shell –Redirection, background processes, cmd files, etc

Traps Hardware interrupts Software signals Trap to system routine

Perspective Not designed to meet predefined objective Goal: create a comfortable environment to explore machine and operating system Other goals –Programmer convenience –Elegance of design –Self-maintaining

“THE”-Multiprogramming System Edsger W. Dijkstra Received Turing Award in 1972 Contributions –Shortest Path Algorithm, Reverse Polish Notation, Bankers algorithm, semaphore’s, self-stabilization Known for disliking ‘goto’ statements and using computers!

“THE”-Multiprogramming System Edsger W. Dijkstra Never named “THE” system; instead, abbreviation for "Technische Hogeschool Eindhoven” Batch system (no human intervention) that supported multitasking (processes share CPU) –THE was not multiuser Introduced –software-based memory segmentation –Cooperating sequential processes –semaphores

Design Layered structure –Later Multics has layered structure, ring segmentation Layer 0 – the scheduler –Allocated CPU to processes, accounted for blocked proc’s Layer 1 – the pager Layer 2 – communication between OS and console Layer 3 – managed I/O Layer 4 – user programs Layer 5 – the user

Perspective Layered approach –Design small, well defined layers –Higher layers dependent on lower ones Helps prove correctness Helps with debugging Sequential process and Semaphores

Next Time Read and write review: Do Lab 1 due yesterday Project Proposal due this Thursday – and talk to me before Thursday Check website for updated schedule