CMSC 104 1 Operating Systems I An Introduction to Operating System Concepts.

Slides:



Advertisements
Similar presentations
OPERATING SYSTEM An operating system is a group of computer programs that coordinates all the activities among computer hardware devices. It is the first.
Advertisements

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Operating System.
Operating Systems Manage system resources –CPU scheduling –Process management –Memory management –Input/Output device management –Storage device management.
Operating Systems: Software in the Background
Understanding Operating Systems 1 Overview Introduction Operating System Components Machine Hardware Types of Operating Systems Brief History of Operating.
Operating Systems BTEC IT Practitioners.
Chapter 11 Operating Systems
1 Operating Systems Ch An Overview. Architecture of Computer Hardware and Systems Software Irv Englander, John Wiley, Bare Bones Computer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
CMSC 1041 Operating Systems I An Introduction to Operating System Concepts.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Introduction to Operating Systems
The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 145 Operating Systems Introduction to UNIX/Linux.
Week 6 Operating Systems.
Chapter 3.1:Operating Systems Concepts 1. A Computer Model An operating system has to deal with the fact that a computer is made up of a CPU, random access.
CMSC 104, L031 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Operating Systems What do you have left on your computer after you strip away all of the games and application programs you bought and installed? Name.
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
 What is OS? What is OS?  What OS does? What OS does?  Structure of Operating System: Structure of Operating System:  Evolution of OS Evolution of.
Operating Systems.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Eleventh Edition.
LINUX System : Lecture 2 OS and UNIX summary Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang University Acknowledgement.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 1 Introduction Read:
CS 1308 Computer Literacy and the Internet. Introduction  Von Neumann computer  “Naked machine”  Hardware without any helpful user-oriented features.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Computing and the Web Operating Systems. Overview n What is an Operating System n Booting the Computer n User Interfaces n Files and File Management n.
Operating Systems JEOPARDY Computer Repair NetworkOS OS Tasks ConceptsComponentsMisc
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.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
1.1 Operating System Concepts Introduction What is an Operating System? Mainframe Systems Desktop Systems Multiprocessor Systems Distributed Systems Clustered.
Systems Software Operating Systems. What is software? Software is the term that we use for all the programs and data that we use with a computer system.
Lecture 8: 9/19/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
1 Sec (3.2) Operating System Architecture OS. 2 Software dividing into two categories: 1. Application software 2. System Software  Operating System 
Chapter 3 Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 3: Operating Systems
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.
CMSC 104, Lecture 031 Operating Systems I An Introduction to Operating System Concepts.
Chapter 3 Operating Systems. © 2005 Pearson Addison-Wesley. All rights reserved 3-2 Chapter 3 Operating Systems 3.1 The Evolution of Operating Systems.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
Operating Systems.
Operating Systems. Categories of Software System Software –Operating Systems (OS) –Language Translators –Utility Programs Application Software.
Operating Systems (Credit to: Rick Graziani of Cabrillo College)
Operating Systems Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
CT101: Computing Systems Introduction to Operating Systems.
1 OPERATING SYSTEMS. 2 CONTENTS 1.What is an Operating System? 2.OS Functions 3.OS Services 4.Structure of OS 5.Evolution of OS.
Operating System & Application Software
Chapter Objectives In this chapter, you will learn:
Operating System Review
Chapter 3: Operating Systems
Operating System.
THE OPERATION SYSTEM The need for an operating system
Operating Systems Georgios Varsamopoulos
Introduction to Operating System (OS)
TexPREP Summer Camp Computer Science
What is an Operating System?
Operating System Review
Shell & Kernel Concepts in Operating System
Operating System Architecture OS
Introduction to Operating Systems
The Main Features of Operating Systems
Introduction to OS (concept, evolution, some keywords)
Software - Operating Systems
Chapter 3: Operating Systems
Introduction to OS (concept, evolution, some keywords)
Introduction to Operating Systems
Presentation transcript:

CMSC Operating Systems I An Introduction to Operating System Concepts

CMSC What’s an Operating System? l “The Boss” l “The Big Cheese” l “The Godfather” l “The Power Behind the Scenes” l A control program the manages all the resources of the computer on which it runs.

CMSC OS Introduction l Most computers multitask (do many things “at once”) oread/write disks and tapes osend/receive network traffic orun several programs. l Resources must be shared and programs coordinated

CMSC OS Introduction l The operating system manages multi- tasking systems. oWhat resources are available. oWho gets to use them. --- “Not now Bobby, it’s Sally’s turn.” --- l Also provides: o standard interfaces (ways to use) to computer hardware ostandard utility programs supporting other software.

CMSC “McDonalds Model” of an Operating System Counter Drinks Grill Fries Customers (Applications) Crew (Operating System) Crew Serves Customers. Customers Don’t Cross Counter

CMSC Operating System Evolution “Batch” Operating Systems l “One-at-a-time” in a “batch” oUsually single-task oExecution required significant setup of equipment and software oEach program was a job (“batch job”) oOS designed to simplify setup and transition between jobs

CMSC Batch Operating Systems (cont’d) l Operators served as “High Priests.” oUsers didn’t touch computers User’s “submitted” jobs Picked up program output Written/punched input and instructions Printed/punched output and error reports oTurn around: minutes to days “Error 410: Unterminated Do Loop, line 66”

CMSC Operating System Evolution Interactive Processing l OS for Interactive Processing oStarted with “operator-like” single user oUsers interact directly via remote terminals (workstations) --- “On-Line processing” oUsers demand timely response oMachines too expensive for single users N.B. “real-time” means “must respond in limited time or fail” --- not on-line system

CMSC Operating System Evolution Time-Sharing Systems l Really “time-slicing” systems l Operating system: oputs jobs in a “circular queue” ogives each job a predetermined “time slice” oswaps old job out and new one in at the end of each slice orepeats fast enough to give illusion of simultaneously execution

CMSC Operating System Evolution Time-Sharing Systems (continued) l “Radar O’Reilly” model of operating systems oRead the mail oMake the coffee oCheck on Hawkeye oAnswer the phone l Only one job at a time, but all progress “on the average.”

CMSC Operating System Evolution Time Sharing (cont’d) l Other Benefits: obest allocation of user time --- no “dead time” at the keyboard ono waiting for peripherals --- other processes can execute while one waits. l Costs: ocomplexity

CMSC Operating System Evolution Examples l Batch Systems: oIBM 1620, early MITS l Interactive systems: oDOS, early MacOS, VIC20, Commodore 64 l Time-Sharing systems: oUnix, Linux, Multics, IBM MVS, DEC VMS oWindows 95/98/NT, later MacOS

CMSC Different Operating Systems on the Same Machine ? l Only one at a time oVAX: VMS or Ultrix oIBM PCs: Linux or Windows or OS/2 l Emulators let one OS act like another o“Soft-PC”: Mac Windows o“Wine” and “Wabi”: Linux Windows oCygnus Windows: Win95/98/NT Unix oNot always complete

CMSC Inside the Operating System The OS Shell l Defines interface between OS and users oWindows GUI oUNIX command line oUNIX users can choose among a variety of shells csh is the “C shell” tcsh is an enhanced “C shell” oShell programming

CMSC Inside the Operating System OS Shell interface O / S shell Users

CMSC Inside the Operating System Different Shells/Same Results Operating System BASH TCSH CSH SH Different Command Sets Same Results

CMSC Inside the Operating System The OS Kernel l Central part (“hard nugget”) of Operating System l Kernel Components oFile Manager oDevice Drivers oMemory Manager oScheduler oDispatcher

CMSC Inside the Opeating System File Manager l Maintains information about the files that are available on the system olocation osize, type, and protections owhat storage is still available l Files usually allowed to be grouped in directories or folders. Allows hierarchical organization.

CMSC Inside the Operating System Device Drivers l Software to communicate with peripheral devices or controllers l Each driver is unique l Translates general requests into specific steps for that device “read poker.exe” “read device 0xA3, cylinder 3, track 13, sector 43” Device Driver

CMSC Inside the Operating System Memory Manager l Controls use of main memory l Allocates memory for each program and its data l Reclaims memory when programs release it (or finish). l Is supposed to know what areas are free. “Memory leak” manager loses track

CMSC Inside the Operating System Memory Manager (cont’d) l Virtual memory (“Imaginary memory”) oPrograms only need their current data in memory. (“What’s your VIN?”) oStore remainder on disk & keep location. oBring other data back (and put this data out) when other data is needed. oCreates the illusion of additional memory by rotating (swapping) programs and data between main memory and mass storage

CMSC Inside the Operating System Virtual Memory for People You Calendar Sticky notes Notebooks

CMSC Inside the Operating System Scheduler l Maintains a record of processes that are present, adds new processes, removes completed processes l Tracks omemory area(s) assigned opriority ostate of readiness to execute (ready/wait)

CMSC Inside the Operating System Dispatcher l Executes processes when scheduled and ready l Gives each process a small (50 ms) time slice in which to execute l Stops process when time is up. l Waits for scheduler to update process record l Starts next scheduled process.

CMSC What’s a Process l The dynamic activity of executing a program l The process state is a “snapshot” of the machine, including values of the CPU registers, program counter and other memory cells l A single program can be associated with multiple processes simultaneously

CMSC Inside the Operating System Types of software l Applications software l Do something “for the outside world.” l Often transportable l System Software l Performs tasks supporting operation of computer systems (“not outside world”) e.g. operating systems l Usually tightly coupled to hardware

CMSC Inside the Operating System Types of software (cont’d) l Utility software oprovides fundamental not included OS (check spelling, count words, calculator) o“extend” the OS (or “support” applications) oDistinction between applications and utilities is often vague oDistinction between OS and utilities is also vague

CMSC Inside the Operating System Utilities l Operating Systems usually come with some associated utility programs l UNIX usually has the text editors emacs and vi (and sometimes pico) l UNIX has its own sort utility l UNIX has its own mail utility (The contraction “it’s” means “it is,” not “belonging to it.”)

CMSC Inside the Operating System Summary l Shell -- interface to user l File Manager -- manages mass memory l Device Drivers -- communicate with peripherals l Memory manager -- manages main memory l Scheduler & Dispatcher -- manage processes