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.

Slides:



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

Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc
Microprocessor 8085/8086 Lecturer M A Rahim Khan Computer Engineering and Networks Deptt.
An Overview of the Computer System
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.
Understanding Operating Systems 1 Overview Introduction Operating System Components Machine Hardware Types of Operating Systems Brief History of Operating.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
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.
1/21/2010CSCI 315 Operating Systems Design1 Computer System Structures Notice: The slides for this lecture have been largely based on those accompanying.
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,
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Hardware.
Computers Central Processor Unit. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS Memory.
HARDWARE: CPU & STORAGE How to Buy a Multimedia Computer System.
CSC 322 Operating Systems Concepts Lecture - 4: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
1 CS503: Operating Systems Spring 2014 Dongyan Xu Department of Computer Science Purdue University.
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.
Understanding Operating Systems Flynn & McHoes
Computing and the Web Computer Hardware Components.
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
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.
ITFN 3601 Operating Systems Computer Hardware Review OS Concepts Overview.
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
COMPUTER ARCHITECTURE. Recommended Text 1Computer Organization and Architecture by William Stallings 2Structured Computer Organisation Andrew S. Tanenbaum.
© 2004, D. J. Foreman 1 Computer Organization. © 2004, D. J. Foreman 2 Basic Architecture Review  Von Neumann ■ Distinct single-ALU & single-Control.
1 Operating Systems: Principles and Practice Cpr E 308.
Copyright ©: University of Illinois CS 241 Staff1 Operating Systems Orientation.
1 Lecture 1: Computer System Structures We go over the aspects of computer architecture relevant to OS design  overview  input and output (I/O) organization.
Computer and Operating Systems
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.
ITFN 2601 Introduction to Operating Systems Lecture 2 Computer Hardware Review OS Concepts Overview.
操作系统原理 OPERATING SYSTEM Chapter 1 Introduction 概 述.
Operating Systems: History, Hardware & Concepts Ch 1.4 & 1.5 Thursday, January 18, 2007.
CIT 140: Introduction to ITSlide #1 CSC 140: Introduction to IT Operating Systems.
Chapter 3 Getting Started. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. Objectives To give an overview of the structure of a contemporary.
Operating System Overview
Lecture 3: Basic OS Concepts
An Overview of the Computer System
Lecture 2: Hardware Review
Looking Inside the machine (Types of hardware, CPU, Memory)
An Overview of the Computer System
An Overview of the Computer System
MODERN OPERATING SYSTEMS Third Edition ANDREW S
Today’s agenda Hardware architecture and runtime system
Introduction to Operating Systems
Computer Organization
Introduction to Operating Systems
Lecture 2: Hardware Review
Lecture 3: Basic OS Concepts
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment. Phone:
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc.
Presentation transcript:

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 Computer hardware review 1.5 System Calls

Some References

Core References

Computer System A Computer System Consists of –Hardware Internal: CPU, CPU support, memory, bus, adapters, disk drives External: display, keyboard, disk drives, printers –Software Firmware Operating System Other System Software Application Programs

A Computer System A computer system consists of –hardware –system programs –application programs Physical devices Microprogramming system Machine Language interface Kernel CompilersEditorsInterpreters Office SuiteWeb Browsers Hardware Operating System Applications Multimedia tools

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 resources –Each program gets space on the resources

History of Computer Systems First generation –Technology: vacuum tubes, plug boards –Sign up for time, exclusive use of the machine –Languages: none –OS: no operating system Second generation –Technology: transistors, punch cards –Mainframes –Languages: FORTRAN, COBOL, –Jobs –OS: batch systems, libraries Third generation 1965 – 1980 –Technology: Integrated Circuits –Large mainframes and smaller machines (IBM 360 family) –Minicomputers (DEC) –OS: multiprogramming, large systems (multipart), batch and timesharing, emergence of Unix Fourth generation 1980 – present –Technology: Mass production of integrated circuits (chips and boards) –Personal computers/servers/Internet –OS: embedded -> supercomputer, CP/M -> Windows, PARC->Macintosh, Unix -> Linux/Solaris

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

System Life Cycle Ontogeny Recapitulates Phylogeny (Ernst Haeckel, 1866) Ontogeny = "the development of an individual organism from egg to maturity” Recapitulates = “repeats” Phylogeny = “the development over time of a kind of organism”

The Operating System Taxonomy Mainframe operating systems Server operating systems Multiprocessor operating systems Personal computer operating systems Real-time operating systems Embedded operating systems Smart card operating systems Virtual systems Clusters and grids

Computer Insides

Computer Hardware Components of a typical computer Bus MemoryCPU Video Adapter Disk Controller Keyboard Controller Mouse Controller Network Adapter Display Monitor Hard Disks DVD/CD Disk Keyboard Mouse

Types of Devices Categories –CPU –Memory –Clock –Bus control: Arbitration, Interrupt, DMA –Block devices –Character –Memory mapped –Networking Performance Wide range from 10 byes/sec (keyboard) to several hundred megabytes/sec (PCI bus)

CPU Architecture Memory Cache Instruction Decoding Arithmetic Logic Units Floating Point Unit Internal Buses

Computer Hardware Review Structure of a Pentium-based system

CPU Registers Program counter Stack Pointer Program Status Word Data Address

Computer Hardware - Memory One base-limit pair and two base-limit pairs

Computer Hardware Typical memory hierarchy –numbers shown are rough approximations TypeAccess TimeSize Registers1 nanosecond< 1KB Cache2 nanoseconds1 MB Main Memory10 nanoseconds256 MB - 4 GB Disk10 microseconds100 GB - 1 TB Tape10 seconds200 GB - ?

Secondary and Third Level Storage

Disks Types –Magnetic (fixed and removable, internal and external, RAID) –Optical (CD-ROM, CD-R, DVD) Interfaces –IDE, SCSI, USB, Fiber Channel, etc. Recall basic structure –Cylinders, tracks, sectors –Issues: Cylinder skew, sector interleaving, virtual geometry, logical block addressing –Architecture Integrated disk drive (drive with embedded computer system) Bus-interface controller (interfaces between system bus and cable to integrated disk drive)

Computer Hardware Review Structure of a disk drive

Examples of Disks Tanenbaum, MOS

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

Kernel-based Systems (Monolithic) System calls File Management Process Management Interprocess Communication Management Memory Management General Purpose FunctionsDevice tables Device Drivers

System Calls Some Win32 API calls

Steps for System Call 1-3) Push registers on stack 4) call library function 5) place function # in register (or stack) 6) execute TRAP instruction 7) dispatch to call handler 8) runs a handler 9) returns to library function 10) returns back to program 11) cleans up the stack

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

Operating System Concepts A process tree –A created two child processes, B and C –B created three child processes, D, E, and F

Operating System Concepts Two processes connected by a pipe

Operating System Concepts Typical file and directory system for a university department

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