S. Venkatesan Department of Computer Science Spring 2003 Operating Systems Principles Class 1.

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

Computer Architecture
The Fetch – Execute Cycle
Central Processing Unit
1 (Review of Prerequisite Material). Processes are an abstraction of the operation of computers. So, to understand operating systems, one must have a.
Topics covered: CPU Architecture CSE 243: Introduction to Computer Architecture and Hardware/Software Interface.
WHAT IS AN OPERATING SYSTEM? An interface between users and hardware - an environment "architecture ” Allows convenient usage; hides the tedious stuff.
Computer Organization and Architecture
Microprocessor.  The CPU of Microcomputer is called microprocessor.  It is a CPU on a single chip (microchip).  It is called brain or heart of the.
Microprocessors. Von Neumann architecture Data and instructions in single read/write memory Contents of memory addressable by location, independent of.
Computer System Overview
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
CS 345 Computer System Overview
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
1: Operating Systems Overview
Computer System Overview
Computer System Overview
Chapter 1 and 2 Computer System and Operating System Overview
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.
OS and the Computer System  Some OS programs exist permanently in the system area of the memory to monitor and control activities in the computer system.
1 Computer System Overview Chapter 1 Review of basic hardware concepts.
CH12 CPU Structure and Function
Chapter 2 Operating System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Operating System A program that controls the execution of application programs An interface between applications and hardware 1.
Introduction and Overview Questions answered in this lecture: What is an operating system? How have operating systems evolved? Why study operating systems?
LOGO OPERATING SYSTEM Dalia AL-Dabbagh
 What is an operating system? What is an operating system?  Where does the OS fit in? Where does the OS fit in?  Services provided by an OS Services.
Computer Systems Overview. Page 2 W. Stallings: Operating Systems: Internals and Design, ©2001 Operating System Exploits the hardware resources of one.
1 Computer System Overview Chapter 1. 2 n An Operating System makes the computing power available to users by controlling the hardware n Let us review.
 Introduction to Operating System Introduction to Operating System  Types Of An Operating System Types Of An Operating System  Single User Single User.
Chapter 1 Computer System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
Fall 2000M.B. Ibáñez Lecture 01 Introduction What is an Operating System? The Evolution of Operating Systems Course Outline.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Computer Science 210 Computer Organization The von Neumann Architecture.
Operating Systems and Networks AE4B33OSS Introduction.
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 1 Computer System Overview.
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
Input-Output Organization
Operating System Structure A key concept of operating systems is multiprogramming. –Goal of multiprogramming is to efficiently utilize all of the computing.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Lecture 1: Review of Computer Organization
Computer and Operating Systems
OSes: 2. Structs 1 Operating Systems v Objective –to give a (selective) overview of computer system architectures Certificate Program in Software Development.
Chapter 3 : Top Level View of Computer Functions Basic CPU function, Interconnection, Instruction Format and Interrupt.
بسم الله الرحمن الرحيم MEMORY AND I/O.
1 Computer Architecture. 2 Basic Elements Processor Main Memory –volatile –referred to as real memory or primary memory I/O modules –secondary memory.
Interrupts and Exception Handling. Execution We are quite aware of the Fetch, Execute process of the control unit of the CPU –Fetch and instruction as.
Page 1 2P13 Week 1. Page 2 Page 3 Page 4 Page 5.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview: Using Hardware.
BASIC COMPUTER ARCHITECTURE HOW COMPUTER SYSTEMS WORK.
CPIT Program Execution. Today, general-purpose computers use a set of instructions called a program to process data. A computer executes the.
Applied Operating System Concepts
Computer Science 210 Computer Organization
CS 286 Computer Organization and Architecture
Functional Units.
Computer System Overview
Operating Systems (CS 340 D)
Computer System Overview
Chapter 1 Computer System Overview
GCSE OCR 1 The CPU Computer Science J276 Unit 1
Operating Systems : Overview
Operating Systems : Overview
Operating Systems : Overview
Computer System Overview
Chapter 2 Operating System Overview
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Computer Architecture
Presentation transcript:

S. Venkatesan Department of Computer Science Spring 2003 Operating Systems Principles Class 1

S. Venkatesan Department of Computer Science Spring 2003 Views of Operating Systems  Resource manager  Control program that controls all the devices  Interface between the machine and the user

S. Venkatesan Department of Computer Science Spring 2003 Overview of a Computer System  OS uses/manages HW resources to provide service to users  Main components are: (a) Processor, (b) Main memory, © I/O devices  Processor has program counter (PC), instruction register (IR), MAR, MDR, etc.

S. Venkatesan Department of Computer Science Spring 2003 Instruction execution  Fetch next instruction from memory  Decode instruction  Fetch operand from memory if needed  Execute instruction  Store result in memory if needed  Repeat this..

S. Venkatesan Department of Computer Science Spring 2003 Interrupts  A mechanism by which the normal flow of program execution is changed  Identify type of interrupt  Service interrupt  Resume original execution  Can disable interrupts (when? Why?)

S. Venkatesan Department of Computer Science Spring 2003 I/O devices  Store/generate data  Transfer data – Programmed I/O [CPU constantly checks status] – Interrupt driven: CPU waits for an interrupt – DMA (Direct Memory Access): Transfer large volume of data

S. Venkatesan Department of Computer Science Spring 2003 Evolution of Operating Systems  Today’s OS evolved over time  Many techniques used in old OS are very useful

S. Venkatesan Department of Computer Science Spring 2003 I. Early Systems (I generation)  No OS  Users operate like an open shop – sign up for slots (like renting) User has complete control of the machine Utilization is very low; set up time is high

S. Venkatesan Department of Computer Science Spring 2003 II. Early batch systems  Motivation: Increase CPU utilization  Use a slow computer to aggregate programs and feed into fast computer.  Same on the output side  Issues; – Job Control Cards – Protection of OS and Users

S. Venkatesan Department of Computer Science Spring 2003 III Sophisticated batch systems  Refine early batch systems  1. Buffering and double buffering  SPOOLing  Multipogramming

S. Venkatesan Department of Computer Science Spring 2003 IV. Time-sharing systems  Combination of early systems (I generation) and multiprogramming  Time-sharing=interactive programming+multiprogramming  Suitable for small jobs

S. Venkatesan Department of Computer Science Spring 2003 V. Multiprocessor Systems  Multiple CPUs; two kinds – All CPUs attached to common main memory (parallel processing) NCUBE, Hybercube – Separate memory and large distances between CPUs-- distributed processing; WWW

S. Venkatesan Department of Computer Science Spring 2003 Real-time systems  Programs with tight deadline constraints; not much of slack time..  Examples – Flight control – Process control in factories/nuclear reactors – Military situations

S. Venkatesan Department of Computer Science Spring 2003 Two approaches to implement OS  Monolithic – OS is one big program – When executing, disable all interrupts – After execution, enable interrupts  Kernal or Nucleus – A small portion of code executed in an interrupt-disabled mode; others?can be interrupted

S. Venkatesan Department of Computer Science Spring 2003 Characteristics of modern OS  Microkernal architecture – Few function to kernal (address space, IPC, scheduling, etc.) – Other services are provided by user processes in user mode – Customize servers, simplifies implementation, flexibility

S. Venkatesan Department of Computer Science Spring 2003 Characteristics of modern OS; Continued  Multithreading – light duty processes – DB server – web server  Symmetric multiprocessing – >1 identical CPUs – Same memory, I/O, etc. – Incremental growth