1 6 Further System Fundamentals (HL) 6.5 Computer – Peripheral Communication.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

I/O Organization popo.
Buffers & Spoolers J L Martin Think about it… All I/O is relatively slow. For most of us, input by typing is painfully slow. From the CPUs point.
I/O Organization popo.
1a. Outline how the main memory of a computer can be partitioned b. What are the benefits of partitioning the main memory? It allows more than 1 program.
P3- Represent how data flows around a computer system
Introduction to Computer Hardware and Software. Definition of a Computer “A computer is an electronic device, operating under the control of instructions.
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Using Computers CS French Chapter 1.
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
Operating System - Overview Lecture 2. OPERATING SYSTEM STRUCTURES Main componants of an O/S Process Management Main Memory Management File Management.
Computer Hardware.
I/O Subsystem Organization and Interfacing Cs 147 Peter Nguyen
Computer-System Structures
Chapter 7 Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats.
1/21/2010CSCI 315 Operating Systems Design1 Computer System Structures Notice: The slides for this lecture have been largely based on those accompanying.
11:15:01 Storage device. Computer memory Primary storage 11:15:01.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
How Hardware and Software Work Together
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
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.
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
2: Computer-System Structures
Input and output (IO) systems Last week we considered the memory management layer of the operating system. This week we will look at another layer of the.
Measuring System Performance The speed of a computer is often referred to as THROUGHPUT. This is very difficult to measure. It can be done with Measures.
Intro to Computers Computer Apps 1.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 1: Introduction What Operating Systems Do Computer-System.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection Network Structure.
© Paradigm Publishing Inc. 4-1 OPERATING SYSTEMS.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Operating Systems Lesson Objective: Understanding the functions of an operating system. Learning Outcome: Answer some basic questions on operating systems.
Modes of transfer in computer
CH10 Input/Output DDDData Transfer EEEExternal Devices IIII/O Modules PPPProgrammed I/O IIIInterrupt-Driven I/O DDDDirect Memory.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 4 Computer Systems Review.
AS Computing Hardware. Buffers and Interrupts A buffer is an area of memory used for holding data during input/output transfers to and from disk.
Lecture 1: Review of Computer Organization
Overview von Neumann Architecture Computer component Computer function
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Review of Computer System Organization. Computer Startup For a computer to start running when it is first powered up, it needs to execute an initial program.
IT3002 Computer Architecture
TANNENBAUM: 5, BIC & SHAW, SILBERSCHATZ: 12 INPUT/OUTPUT DEVICE DRIVERS.
Input Output Techniques Programmed Interrupt driven Direct Memory Access (DMA)
Interfaces. Peripheral devices connect to the CPU, via slots on the back of the computer.
بسم الله الرحمن الرحيم MEMORY AND I/O.
Transferring Data – Primary Memory to Secondary Storage F451 - AS Computing.
Lecture Overview Shift Register Buffering Direct Memory Access.
Storage of Data Letts Chapter 6. Introduction Any system needs to store both programs and data and requires: n a main store for fast access storage; n.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Part IVI/O Systems Chapter 13: I/O Systems. I/O Hardware a typical PCI bus structure 2.
Amdahl’s Law & I/O Control Method 1. Amdahl’s Law The overall performance of a system is a result of the interaction of all of its components. System.
OPERATING SYSTEM REVIEW. System Software The programs that control and maintain the operation of the computer and its devices The two parts of system.
Input/Output (I/O) Important OS function – control I/O
Resource Management IB Computer Science.
Hardware and Software Hardware refers to the physical devices of the computer system e.g. monitor, keyboard, printer, RAM etc. Software is a set of programs,
Operating System.
CPU & its Components CPU stands for central Processing Unit
CS703 - Advanced Operating Systems
Interfaces.
Operating Systems Chapter 5: Input/Output Management
Operating System Review
Components of a CPU AS Computing - F451.
Function of Operating Systems
Presentation transcript:

1 6 Further System Fundamentals (HL) 6.5 Computer – Peripheral Communication

6.5.1 DMA and Buffers

3 Buffers The CPU is usually the fastest component in the system. Peripherals such as printers may not be able to deal with data as fast, so areas of RAM called buffers are used as temporary stores, allowing the CPU to take on other tasks while waiting for more data.

4 Buffers When reading or writing to hard disk, the data to be saved are first saved in a buffer, then written to disk when convenient, then the buffer is flushed. In a command line interface, keystrokes are buffered until the Enter key is pressed which generates an interrupt for the CPU to flush the buffer and attempt to interpret the command.

5 Double buffering Two (or more) buffers can speed up data transfer – while one is filling, the other can be being read. Also useful if two jobs (e.g. a read and a write) are occurring at the same time.

6 Direct Memory Access Recent trend devolve control of data transfer out to peripherals. To allow faster access (without the direct intervention of the CPU), peripherals such as hard disks can be accessed directly. Effectively, the disk has a memory address and is treated as if it were part of RAM.

7 Direct Memory Access Such DMA is useful for tasks involving transfer of a lot of data e.g. background backups. Compared with interrupts and polling (see next section), DMA is under the control of the device controller chip rather than the CPU, so the CPU is freed for other tasks.