CSE 451: Operating Systems Winter 2012 Introduction Mark Zbikowski Gary Kimura.

Slides:



Advertisements
Similar presentations
WHAT IS AN OPERATING SYSTEM? An interface between users and hardware - an environment "architecture ” Allows convenient usage; hides the tedious stuff.
Advertisements

Introduction CSCI 444/544 Operating Systems Fall 2008.
CS 345 Computer System Overview
Chapter 1: Introduction
Operating Systems CS451 Brian Bershad
1 School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Dr. Mohamed Hefeeda.
W4118 Operating Systems OS Overview Junfeng Yang.
Computer Science 162 Discussion Section Week 2. Agenda Recap “What is an OS?” and Why? Process vs. Thread “THE” System.
CSE 451: Operating Systems Winter 2009 Introduction Mark Zbikowski Gary Kimura.
© 2004, D. J. Foreman 1 CS350 Operating Systems. © 2004, D. J. Foreman 2 Administrivia  Assignments ■ Homework on most chapters ■ Approximately 8 lab.
1/28/2004CSCI 315 Operating Systems Design1 Operating System Structures & Processes Notice: The slides for this lecture have been largely based on those.
Chapter 1 and 2 Computer System and Operating System Overview
Common System Components
1 CSE451 Introduction to Operating Systems Spring 2007 Module 1 Course Introduction Gary Kimura & Mark Zbikowski March 26, 2007.
Cs238 Introduction to Operating Systems Dr. Alan R. Davis.
1/16/2008CSCI 315 Operating Systems Design1 Introduction Notice: The slides for this lecture have been largely based on those accompanying the textbook.
Operating Systems: Principles and Practice
OPERATING SYSTEMS Prof. Sujata Rao Lesson 3. Agenda 1. What is an operating system? 2. How have operating systems evolved? 3. Functions of Operating System.
CS212: OPERATING SYSTEM Lecture 1: Introduction 1.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: System Structures.
1 COMPSCI 110 Operating Systems Who - Introductions How - Policies and Administrative Details Why - Objectives and Expectations What - Our Topic: Operating.
part I, , Part I Introduction to Operating Systems First Semester, Year 2000 Wannarat Suntiamorntut Department of Computer Engineering,
CSE 451: Operating Systems Autumn 2010 Module 1 Course Introduction Ed Lazowska 570 Allen Center.
Introduction and Overview Questions answered in this lecture: What is an operating system? How have operating systems evolved? Why study operating systems?
Chapter 1. Introduction What is an Operating System? Mainframe Systems
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 1 Introduction Read:
INTRODUCTION IT344 Fall /21/ Today’s agenda Administrivia course overview course staff general structure the text policies your to-do list.
CSE 451: Operating Systems Spring 2012 Module 1 Course Introduction Ed Lazowska 570 Allen Center.
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
Fall 2000M.B. Ibáñez Lecture 01 Introduction What is an Operating System? The Evolution of Operating Systems Course Outline.
◦ What is an Operating System? What is an Operating System? ◦ Operating System Objectives Operating System Objectives ◦ Services Provided by the Operating.
1 CSE451 Introduction to Operating Systems Autumn 2002 Gary Kimura Lecture #1 September 30, 2002.
C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
CS 153 Design of Operating Systems Spring 2015 Lecture 2: Intro and Architectural Support for Operating Systems.
INVITATION TO COMPUTER SCIENCE, JAVA VERSION, THIRD EDITION Chapter 6: An Introduction to System Software and Virtual Machines.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Operating Systems David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 432.
Silberschatz and Galvin  Operating System Concepts Module 1: Introduction What is an operating system? Simple Batch Systems Multiprogramming.
Operating Systems Lecture 1 Jinyang Li. Class goals Understand how an OS works by studying its: –Design principles –Implementation realities Gain some.
U NIVERSITY OF M ASSACHUSETTS A MHERST Department of Computer Science Computer Systems Principles Introduction Emery Berger and Mark Corner University.
CENG334 Introduction to Operating Systems 1 Erol Sahin Dept of Computer Eng. Middle East Technical University Ankara, TURKEY URL:
CSE 451: Operating Systems Winter 2015 Module 1 Course Introduction Gary Kimura Mark Zbikowski © 2013.
CIS250 OPERATING SYSTEMS Chapter One Introduction.
Operating Systems Introduction & Overview. Books (Tentative) Text Book: –Operating System Concepts, 6 th Edition, Silberschatz Galvin Gagne Reference.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview: Using Hardware.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 0: Historical Overview.
CSE 451: Operating Systems Winter 2010 Introduction
Where are being used the OS?
Introduction to Operating System (OS)
Overview Introduction to Operating Systems
CSE 451: Operating Systems Spring 2006 Module 1 Course Introduction
CSE 451: Operating Systems Winter 2007 Module 1 Course Introduction
CSE 451: Operating Systems Autumn 2004 Course Introduction Hank Levy
Operating Systems CSE451 Winter 2000
CSE 451: Operating Systems Winter 2003 Lecture 1 Course Introduction
CSE 451: Operating Systems Autumn 2009 Module 1 Course Introduction
CSE 451: Operating Systems Winter 2006 Module 1 Course Introduction
Operating Systems CSE451 Spring 2000
Operating Systems CS451 Spring 1998
CSE 451: Operating Systems Winter 2004 Module 1 Course Introduction
Operating Systems CS451 Fall 1998
CSE 451: Operating Systems Spring 2005 Module 1 Course Introduction
CSE 335: Operating Systems L-3 T-2 L-1 Course Introduction
CSE 451: Operating Systems Autumn 2003 Lecture 1 Course Introduction
Operating System Overview
CSE 451: Operating Systems Winter 2007 Module 1 Course Introduction
Lecture Topics: 11/1 Hand back midterms
Presentation transcript:

CSE 451: Operating Systems Winter 2012 Introduction Mark Zbikowski Gary Kimura

2 Introduction Administration and Mechanics –Introductions A bit about ourselves Mark Zbikowski CSE 591 (lab) Gary Kimura CSE 476 –Three sources of truth Lectures Reading Projects/Source code All are important –Lectures Supplement rather than recapitulate text Lots of historical/developmental info Lots of “why was it done this way” info ASK QUESTIONS!

3 Introduction More Administration –Sections Some review of lectures/book Mostly focus on projects –Homework Keep up with the reading (Silberschatz, et al.). Far better for you to read the chapters BEFORE the class Do/familiarize yourself with the problems at the end of each chapter. All of them.

4 Introduction More Administration –Projects based on Windows Research Kernel (Windows 2003 Server) sources 4 projects –Two individual projects and two group projects –You Will Write Code. You Will Read Lots of Code –You are either very familiar with C or will become so quickly Lab session to get students familiar with the development environment –Slides come from material in previous CSE451 courses, from the book (Silberschatz), reference (Russinovich, et al.), and from Mark/Gary’s experiences.

5 Introduction Last Administration –Midterm –Final Take home part (could be an essay) Small in class portion –Grading Goal is to determine what YOU have learned and can express Gary? Scores available via Catalyst –Policies Collaboration vs Cheating Late homework Late projects

6 Goals for this course Two views of an OS –The OS user’s (i.e., application programmer’s) view –The OS implementer’s view In this class we will learn: –Historical motivations –What are the major parts of an O.S. –How is the O.S. and each sub-part structured –What are the important common interfaces –What are the important policies –What algorithms are typically used –What engineering/practicality tradeoffs were used

7 CSE 451 Philosophy –you may not ever build an OS –but as a computer scientist or computer engineer you need to understand the foundations –most importantly, operating systems exemplify the sorts of engineering design tradeoffs that you’ll need to make throughout your careers – compromises among and within cost, performance, functionality, complexity, schedule … A good OS should be easily usable by everyone

8 Your next steps Familiarize yourself with course website –Read it often (daily) Get on cse451 mailing list. Read your daily Read chapters one and two by Friday Make sure you are familiar with C –Write and debug legible and correct code –Read, understand, and modify other’s code

9 Introduction to Operating Systems What is it? –Textbook: “… manages the computer hardware” “… basis for application programs” –Once upon a time: Programs were run one at a time, no multitasking If you wanted to read data, you wrote the code to read from the punch card reader If you wanted to output data, you wrote code to flash lights or to make the printer do things If your application “crashed”, YOU (or the operator) would push a button on the computer to get it to restart, and read the next program from the card reader Was this an appropriate use of YOUR time?

10 What is an OS? How can we make this easier? –Let programs share the hardware (CPU, memory, devices, storage) –Supply software to abstract hardware (disk vs net or wireless mouse vs optical mouse vs wired mouse) Abstract means to hide details, leaving only a common skeleton –“All the code you didn’t write” in order to get your application to run. The little box, below, is simple, no? Applications OS Hardware

11 What’s in an OS? Machine Dependent Services Interrupts, Cache, Physical Memory, TLB, Hardware Devices Generic I/O File System Memory Management Process Management Virtual Memory Networking NamingAccess Control Windowing & graphics Windowing & Gfx Machine Independent Services Application Services SYSTEM CALL API MD API Device Drivers ShellsSystem Utils GTA-2Sql Server Logical OS Structure

12 Why bother with an OS? Application benefits –programming simplicity see high-level abstractions (files) instead of low-level hardware details (device registers) abstractions are reusable across many programs –portability (across machine configurations or architectures) device independence: 3Com card or Intel card? User benefits –safety program “sees” own virtual machine, thinks it owns computer OS protects programs from each other OS multiplexes resources across programs –efficiency (cost and speed) share one computer across many users concurrent execution of multiple programs

13 The major OS issues Structure: how is the OS organized? What are the resources a program can use? Sharing: how are resources shared across users? Naming: how are resources named (by users or programs)? Security: how is the integrity of the OS and its resources ensured? Protection: how is one user/program protected from another? Performance: how do we make it all go fast? Reliability: what happens if something goes wrong (either with hardware or with a program)? Extensibility: can we add new features? Communication: how do programs exchange information, including across a network?

14 Major issues in OS (2) Concurrency: how are parallel activities created and controlled? Scale and growth: what happens as demands or resources increase? Persistence: how to make data last longer than programs Compatibility & Legacy Apps: can we ever do anything new? Distribution: Accessing the world of information Accounting: who pays the bills, and how do we control resource usage? These are engineering trade-offs, not right and wrong Based on objectives and constraints

15 © Silberschatz, Galvin and Gagne Progression of concepts and form factors

16 Has it all been discovered? New challenges constantly arise –embedded computing (e.g., iPod) –sensor networks (very low power, memory, etc.) –peer-to-peer systems –ad hoc networking –scalable server farm design and management (e.g., Google) –software for utilizing huge clusters (e.g., MapReduce, BigTable) –overlay networks (e.g., PlanetLab) –worm fingerprinting –finding bugs in system code (e.g., model checking)

17 Has it all been discovered? Old problems constantly re-define themselves –the evolution of PCs recapitulated the evolution of minicomputers, which had recapitulated the evolution of mainframes –but the ubiquity of PCs re-defined the issues in protection and security

18 Protection and security as an example none OS from my program your program from my program my program from my program access by intruding individuals access by intruding programs denial of service distributed denial of service spoofing spam worms viruses stuff you download and run knowingly (bugs, trojan horses) stuff you download and run obliviously (cookies, spyware)

19 OS history Before the beginning –Computers were rare, huge, power-sucking and hugely expensive –More expensive than people. This leads to a huge effort to make the most out of the hardware In the very beginning… –OS was just a library of code that you linked into your program; programs were loaded in their entirety into memory, and executed –interfaces were literally switches and blinking lights And then came batch systems –OS was stored in a portion of primary memory –OS loaded the next job into memory from the card reader job gets executed output is printed, including a dump of memory repeat… –card readers and line printers were very slow (sometimes 10’s of minutes just to read in a program) so CPU was idle much of the time (wastes an expensive resource)

20 Spooling Disks were much faster than card readers and printers (once they were invented) Spool (Simultaneous Peripheral Operations On-Line) –while one job is executing, spool next job from card reader onto disk slow card reader I/O is overlapped with CPU –can even spool multiple programs onto disk/drum OS must choose which to run next job scheduling –but, CPU still idle when a program interacts with a peripheral during execution (wastes an expensive resource) –buffering, double-buffering

21 Multiprogramming To increase system utilization, multiprogramming OSs were invented –keeps multiple runnable jobs loaded in memory at once –overlaps I/O of a job with computation of another while one job waits for I/O completion, OS runs instructions from another job –to benefit, need asynchronous I/O devices need some way to know when devices are done –interrupts –polling –goal: optimize system throughput perhaps at the cost of response time. That’s ok until people start getting more expensive than computers…

22 Timesharing To support interactive use, create a timesharing OS: –multiple terminals into one machine –each user has illusion of entire machine to him/herself –optimize response time, perhaps at the cost of throughput (person-time more expensive than computer time!) Timeslicing –divide CPU equally among the users –if job is truly interactive (e.g., editor), then can jump between programs and users faster than users can generate load –permits users to interactively view, edit, debug running programs (why does this matter?)

23 Timesharing MIT CTSS system (operational 1961) was among the first timesharing systems –only one user memory-resident at a time (32KB memory!) MIT Multics system (operational 1968) was the first large timeshared system –nearly all OS concepts can be traced back to Multics! –“second system syndrome”

24 Parallel systems Some applications can be written as multiple activities –can speed up the execution by running multiple threads/processes simultaneously on multiple CPUs [Burroughs D825, 1962] –need OS and language primitives for dividing program into multiple parallel activities –need OS primitives for fast communication among activities degree of speedup dictated by communication/computation ratio (Amdahl’s Law) –many flavors of parallel computers today SMPs (symmetric multi-processors, multi-core) MPPs (massively parallel processors) NOWs (networks of workstations) computational grid FoldIt!)

25 Personal computing Primary goal was to enable new kinds of applications Bit mapped display [Xerox Alto,1973] –new classes of applications –new input device (the mouse) Move computing near the display –why? Window systems –the display as a managed resource Local area networks [Ethernet] –why? Effect on OS?

26 Distributed OS Distributed systems to facilitate use of geographically distributed resources –workstations on a LAN –servers across the Internet Supports communications between programs –interprocess communication message passing, shared memory –networking stacks Sharing of distributed resources (hardware, software) –load balancing, authentication and access control, … Speedup isn’t the issue –access to diversity of resources is goal

27 What is an OS? How were OS’s programmed? –Originally in assembly language Maximal power, all features of the hardware exposed to developers Minimal clarity, takes extreme effort Minimal “portability”, OS is tightly tied to a single manufacturer’s architecture GCOS (Honeywell/GE, ‘62), MVS and OS/360 (IBM, ‘64), TOPS-10 (Digital, ‘64) –Some special high-level languages ESPOL, NEWP, DCALGOL (Burroughs, ‘61) –General high-level languages (with some assembly help) PASCAL (UCSD p-system ’78, early Macintosh) PL/1 (Multics, ’64)

28 What is an OS? What do we do today? –C Adequate to hide most hardware issues –Precision, pointers Procedural, reasonably type-safe, modular Adequate for programmer to gauge efficiency –Plus some assembler C does not reveal enough hardware Assembler source files In-line assembler in C files (only where it makes sense!) –Very little C++, next to zero Java Windows GUI completely in C++ Can hide inefficiencies!