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.

Slides:



Advertisements
Similar presentations
I/O Management and Disk Scheduling
Advertisements

I/O Management and Disk Scheduling
Chapter 4 Device Management and Disk Scheduling DEVICE MANAGEMENT Content I/O device overview I/O device overview I/O organization and architecture I/O.
Categories of I/O Devices
Computer System Overview
CSCI 4717/5717 Computer Architecture
CS-334: Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Avishai Wool lecture Introduction to Systems Programming Lecture 8 Input-Output.
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.
I/O Management and Disk Scheduling (Chapter 10) Perhaps the messiest aspect of operating system design is input/output A wide variety of devices and many.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Device Management.
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.
1 Today I/O Systems Storage. 2 I/O Devices Many different kinds of I/O devices Software that controls them: device drivers.
1 Computer System Overview Chapter 1 Review of basic hardware concepts.
7. Peripherals 7.2 Peripheral handling Computer Studies (AL)
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
The computer system’s I/O architecture is its interface to the outside world. This architecture provides a systematic means of controlling interaction.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
Chapter 11 I/O Management and Disk Scheduling Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and.
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.
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.
1 I/O Management and Disk Scheduling Chapter Categories of I/O Devices Human readable Used to communicate with the user Printers Video display terminals.
1 IO Management and Disk Scheduling Chapter Categories of I/O Devices n Human readable u used to communicate with the user u video display terminals.
1 I/O Management and Disk Scheduling Chapter
NETW 3005 I/O Systems. Reading For this lecture, you should have read Chapter 13 (Sections 1-4, 7). NETW3005 (Operating Systems) Lecture 10 - I/O Systems2.
MICROPROCESSOR INPUT/OUTPUT
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS6: Device Management 6.1. Principles of I/O.
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.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
Operating Systems and Networks AE4B33OSS Introduction.
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.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
COMPUTER ORGANIZATIONS CSNB123 NSMS2013 Ver.1Systems and Networking1.
1 I/O Management and Disk Scheduling Chapter Categories of I/O Devices Human readable –Used to communicate with the user –Printers –Video display.
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.
Page 1 2P13 Week 10. Page 2 Page 3 Static table-driven approaches performs a static analysis of feasible schedules of dispatching result is a schedule.
The computer system’s I/O architecture is its interface to the outside world. This architecture provides a systematic means of controlling interaction.
Lecture 1: Review of Computer Organization
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Input Output Techniques Programmed Interrupt driven Direct Memory Access (DMA)
بسم الله الرحمن الرحيم MEMORY AND I/O.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Chapter 11 I/O Management and Disk Scheduling Dave Bremer Otago Polytechnic, NZ ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Computer Systems Overview. Lecture 1/Page 2AE4B33OSS W. Stallings: Operating Systems: Internals and Design, ©2001 Operating System Exploits the hardware.
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.
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Operating Systems (CS 340 D)
Computer System Overview
Computer System Overview
Computer System Overview
Presentation transcript:

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 terminals –keyboard –mouse –Printer From Operating Systems. Internals and Design Principles. W. Stallings. Prentice Hall

Fall 2000M.B. Ibáñez Categories of I/O Devices Machine readable –used to communicate with electronic equipment –disk drives –tape drives –controllers –Actuators From Operating Systems. Internals and Design Principles. W. Stallings. Prentice Hall

Fall 2000M.B. Ibáñez Categories of I/O Devices Communication –used to communicate with remote devices –digital line drivers –Modems From Operating Systems. Internals and Design Principles. W. Stallings. Prentice Hall

Fall 2000M.B. Ibáñez Differences in I/O Devices Data Transfer Rate Application –disk used to store files must have file- management software –disk used to store virtual memory pages needs special hardware to support it –terminal used by system administrator may have a higher priority From Operating Systems. Internals and Design Principles. W. Stallings. Prentice Hall

Fall 2000M.B. Ibáñez Differences in I/O Devices Complexity of control Unit of transfer –data may be transferred as a stream of bytes for a terminal or in larger blocks for a disk Data representation –encoding schemes Error conditions –devices respond to errors differently Operating Systems. Internals and Design Principles. W. Stallings. Prentice Hall

Fall 2000M.B. Ibáñez Hardware Device Port Bus Controller Computer System

Fall 2000M.B. Ibáñez Hardware PCI bus monitorprocessor cache memory Graphics controller Memory controller IDE disk controller disk

Fall 2000M.B. Ibáñez Techniques for Performing I/O Programmed I/O –process is busy-waiting for the operation to complete Interrupt-driven I/O –I/O command is issued –processor continues executing instructions –I/O module sends an interrupt when done From Operating Systems. Internals and Design Principles. W. Stallings. Prentice Hall

Fall 2000M.B. Ibáñez Techniques for Performing I/O Direct Memory Access (DMA) –DMA module controls exchange of data between main memory and the I/O device –processor interrupted only after entire block has been transferred From Operating Systems. Internals and Design Principles. W. Stallings. Prentice Hall

Fall 2000M.B. Ibáñez Programmed I/O: Polling Controller –Indicates its state through the busy bit in the status register. –Sets the busy bit when it is busy working –Clears the busy bit when it is ready to accept the next command Host –Signals its wishes via the command-ready bit in the command register –Sets the command ready bit when a command is available to execute

Fall 2000M.B. Ibáñez Programmed I/O: Polling ControllerHost status register data-out register command-register busy bit write bit ready bit 1 INF O 1 =0? 0 1

Fall 2000M.B. Ibáñez Simple Interrupt Processing Device controller or other system hardware issues an interrupt Processor finishes execution of current instruction Processor signals acknowledgment of interrupt Processor pushes PSW and PC onto control stack Processor loads new PC value based on interrupt Save remainder of process state information Process interrupt Restore process state information Restore old PSW and PC From Operating Systems. Internals and Design Principles. W. Stallings. Prentice Hall

Fall 2000M.B. Ibáñez Interrupt Handler A program that determines nature of the interrupt and performs whatever actions are needed Control is transferred to this program Generally part of the operating system From Operating Systems. Internals and Design Principles. W. Stallings. Prentice Hall

Fall 2000M.B. Ibáñez Multiple Interrupts Sequential Order Disable interrupts so processor can complete task Interrupts remain pending until the processor enables interrupts After interrupt handler routine completes, the processor checks for additional interrupts From Operating Systems. Internals and Design Principles. W. Stallings. Prentice Hall

Fall 2000M.B. Ibáñez Multiple Interrupts Priorities Higher priority interrupts cause lower- priority interrupts to wait Causes a lower-priority interrupt handler to be interrupted Example when input arrives from communication line, it needs to be absorbed quickly to make room for more input From Operating Systems. Internals and Design Principles. W. Stallings. Prentice Hall

Fall 2000M.B. Ibáñez Direct Memory Access (DMA) I/O exchanges occur directly with memory Processor grants I/O module authority to read from or write to memory Relieves the processor from the task Processor is free to do other things From Operating Systems. Internals and Design Principles. W. Stallings. Prentice Hall

Fall 2000M.B. Ibáñez Six step process to perform DMA transfer From Operating System Concepts. Silberschatz & Galvin Addison Wsley