Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,

Slides:



Advertisements
Similar presentations
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Advertisements

Computer Systems Lecturer: Szabolcs Mikulas
Computer Systems Lecturer: Szabolcs Mikulas Office: B38B
Computer Organization and Architecture
Computer System Overview
CSCI 4717/5717 Computer Architecture
Informationsteknologi Thursday, September 6, 2007Computer Systems/Operating Systems - Class 21 Today’s class Finish computer system overview Review of.
Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
Computer System Overview
1 Computer System Overview OS-1 Course AA
1 CSIT431 Introduction to Operating Systems Welcome to CSIT431 Introduction to Operating Systems In this course we learn about the design and structure.
Computer System Overview
Chapter 7 Interupts DMA Channels Context Switching.
Chapter 1 and 2 Computer System and Operating System Overview
Adapted from slides ©2005 Silberschatz, Galvin, and Gagne and Stallings Lecture 2: Computer Systems Overview.
Chapter 1 and 2 Computer System and Operating System Overview
Operating Systems Béat Hirsbrunner Main Reference: William Stallings, Operating Systems: Internals and Design Principles, 6 th Edition, Prentice Hall 2009.
Computer System Overview Chapter 1. Basic computer structure CPU Memory memory bus I/O bus diskNet interface.
CS 345 Stalling’s Chapter # Project 1: Computer System Overview
1 Computer System Overview Chapter 1 Review of basic hardware concepts.
COSC 4P13 Operating Systems : Design and Implementation.
1 Computer System Overview Let’s figure out what’s inside this thing...
Chapter 3 Process Description and Control Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
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.
Chapter 3 Process Description and Control Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Computer System Overview Chapter 1. Operating System Exploits the hardware resources of one or more processors Provides a set of services to system users.
Chapter 1 Computer System Overview Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Chapter 1 Computer System Overview
Operating Systems and Networks AE4B33OSS Introduction.
Operating Systems Lecture 02: Computer System Overview Anda Iamnitchi
Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 1 Computer System Overview.
Operating systems, lecture 4 Team Viewer Tom Mikael Larsen, Thursdays in D A look at assignment 1 Brief rehearsal from lecture 3 More about.
Operating Systems Lecture No. 2. Basic Elements  At a top level, a computer consists of a processor, memory and I/ O Components.  These components are.
2 nd Year - 1 st Semester Asst. Lect. Mohammed Salim Computer Architecture I 1.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
COMPUTER SYSTEM OVERVIEW
Fall 2000M.B. Ibáñez Lecture 25 I/O Systems. Fall 2000M.B. Ibáñez Categories of I/O Devices Human readable –used to communicate with the user –video display.
Operating System Isfahan University of Technology Note: most of the slides used in this course are derived from those of the textbook (see slide 4)
Operating System 1 COMPUTER SYSTEM OVERVIEW Achmad Arwan, S.Kom.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Chapter 6: Computer Components Dr Mohamed Menacer Taibah University
Lecture 1: Review of Computer Organization
Computer Organization and System Software Lecturer: Szabolcs Mikulas URL: Textbooks:
Structure and Role of a Processor
1 Computer Architecture. 2 Basic Elements Processor Main Memory –volatile –referred to as real memory or primary memory I/O modules –secondary memory.
Computer Systems Overview. Lecture 1/Page 2AE4B33OSS W. Stallings: Operating Systems: Internals and Design, ©2001 Operating System Exploits the hardware.
Operating systems, Lecture 1 Microsoft Windows –Windows 7 –Windows 8 –Windows RT UNIX –Linux –IOS –Android.
1 Computer System Overview Chapter 1. 2 Operating System Exploits the hardware resources of one or more processors Provides a set of services to system.
1 Chapter 11 I/O Management and Disk Scheduling Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and.
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Computer System Overview
Chapter 1 Computer System Overview
William Stallings Computer Organization and Architecture 8th Edition
Interrupts.
Computer System Overview
Chapter 3 Top Level View of Computer Function and Interconnection
Computer System Overview
BIC 10503: COMPUTER ARCHITECTURE
Computer System Overview
Chapter 1 Computer System Overview
Computer System Overview
Chapter01 Computer System Overview
Presentation transcript:

Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings

Computer Components: Top- Level View

Processor Registers User-visible registers –Enable programmer to minimize main memory references Control and status registers –Used by processor to control operating of the processor –Used by privileged OS routines to control the execution of programs

User-Visible Registers Data Address –Segment pointer: When memory is divided into segments, memory is referenced by a segment and an offset –Stack pointer:

Control and Status Registers Program counter (PC) Instruction register (IR) Program status word (PSW) –Bits set by processor hardware as a result of operations –Example Positive, negative, zero, or overflow result

Basic Instruction Cycle

Characteristics of a Hypothetical Machine

Example of Program Execution

Interrupts Most I/O devices are slower than the processor –Processor must pause to wait for device

Classes of Interrupts

Program Flow of Control

Interrupt Stage Processor checks for interrupts If interrupt –Suspend execution of program –Execute interrupt-handler routine

Transfer of Control via Interrupts

Instruction Cycle with Interrupts

Program Timing: Short I/O Wait

Program Timing: Long I/O Wait

Simple Interrupt Processing

Changes in Memory and Registers for an Interrupt

Sequential Interrupt Processing

Nested Interrupt Processing

Multiprogramming Processor has more than one program to execute After an interrupt handler completes, control may not return to the program that was executing at the time of the interrupt The sequence in which programs are executed depend on their relative priority and whether they are waiting for I/O

Memory Hierarchy Faster memories Greater capacity, smaller cost per bit

The Memory Hierarchy

Going Down the Hierarchy Decreasing cost per bit Increasing capacity Increasing access time Decreasing frequency of access to the memory by the processor

Cache and Main Memory

Cache/Main-Memory Structure

Cache Read Operation

Cache Principles Cache size –Even small caches have significant impact on performance Block size –The unit of data exchanged between cache and main memory –Larger block size yields more hits until probability of using newly fetched data becomes less than the probability of reusing data that have to be moved out of cache

Cache Principles Replacement algorithm –Chooses which block to replace –Least-recently-used (LRU) algorithm

Cache Principles Write policy –Dictates when the memory write operation takes place –Can occur every time the block is updated –Can occur when the block is replaced Minimize write operations Leave main memory in an obsolete state

Programmed I/O I/O module performs the action, not the processor Sets the appropriate bits in the I/O status register No interrupts occur Processor checks status until operation is complete

Interrupt-Driven I/O Processor is interrupted when I/O module ready to exchange data Processor saves context of program executing and begins executing interrupt- handler

Interrupt-Driven I/O No needless waiting Consumes a lot of processor time because every word read or written passes through the processor

Direct Memory Access Transfers a block of data directly to or from memory An interrupt is sent when the transfer is complete More efficient