SlideShare a Scribd company logo
 
INPUT / OUTPUT PROCESSING MAIN JOB OF COMPUTER?
ROLE OF OPERATING SYSTEM? To manage and control I/O operations and I/O devices. TOPICS COVERED I/O Hardware I/O Application Interface
 
I/O   HARDWARE PORT A Connection Point through which a device communicates with a computer system by sending signals
I/O HARDWARE BUS A common set of wires used by devices for communication(daisy chain or shared direct access) Example PCI , ISA, SCSI
I/O HARDWARE CONTROLLER A collection of electronics that can  operate a port,a  bus,or a device  Serial port controller, SCSI  controller, IDE controller  The processor give commands and data to a controller to accomplish an I/O transfer Direct I/O instructions Memory-mapped I/O Direct I/O + memory mapped I/O
Controller… I/O controller has 4 types of registers Status registers - also known as  flag register  or  condition code register (CCR) ) is a collection of flag bits for a processor. Control registers- - is a processor   register which changes or controls the general behavior of a CPU or other digital device.  Data-in registers -Used by Host to get Input Data-out registers -Used by Host to send output
PCI BUS STRUCTURE
A PCI Bus consists of Serial Port Controller, SCSI Bus controller  etc., A serial port controller is a simple device controller and  it is a chip or portion of  a chip in the computer. It controls the  signal s on the wires of  a serial port. SCSI bus controller is contrast to serial port controller as SCSI protocol is complex . SCSI bus controller is frequently implemented as a separate circuit board or a host adapter that plugs into the computer. It consists of  a processor,Microcode and Private memory  to enable  it to process SCSI protocol messages PCI BUS STRUCTURE
Three interaction models between I/O controllers and CPUs Polling Interrupt Direct Memory Access(DMA) I/O HARDWARE
POLLING Polling refers to the situation where a device is repeatedly checked for readiness. Is reasonable only if the device and controller are fast. EXAMPLE -> 2 bits are used -> The controller indicates its state through the busy bit in the  status register. -> The controller sets the busy bit when it is busy working and  clears the busy bit when it is ready to accept the next    command
Example continued… The host signals its wishes via the command-ready bit in the command register. The host sets the command ready bit when a command is available for the controller to execute. Process 1.The host repeatedly reads the busy bit until that bit becomes clear. 2.The host sets the write bit in the command register and writes a byte into the data out register 3.The host sets the command ready bit
PROCESS contd… 4.When the controller notices the command ready bit is set  it sets the busy bit. 5.The controller reads the command register and sees the write command. 6.It reads the data out register to get the byte and does the I/O to device. 7.The controller clears the command ready bit, clears the error bit in the status register to indicate that the device. 8.I/O succeeded, and clears the busy bit to indicate that it is finished.
INTERRUPTS A Temporary stopping  of a task for a while and  Resuming it later CPU Interrupt request line triggered by I/O device Interrupt handler receives interrupts Maskable to ignore or delay some interrupts Interrupt vector to dispatch interrupt to correct handler Based on priority Some unmaskable, some maskable
INTERRUPTS IN SIGNAL HAS PRIORITY… INTERRUPT HANDLER ACTS LIKE CPU OTHER PROCESS
INTERRUPT Interrupt mechanism also used for  exceptions and  system calls Interrupt handlers can be divided into two Top half Bottom half
INTERRUPT-DRIVEN CYCLE
DIRECT MEMORY ACCESS(DMA) Used to avoid programmed I/O for large data movement  Requires DMA controller for offloading of work in case of large transfers Handshaking  between  DMA  controller  and the Device  Controller is performed via a pair of wires called DMA-request and DMA-acknowledge Bypasses CPU to transfer data directly between I/O device and memory
STEPS IN DMA TRANSFER
APPLICATION I/O INTERFACE The OS  could be designed such that new devices can be attached to the computer without the OS being rewritten with the help of  Application I/O interface. I/O system calls encapsulate device behaviors in generic classes Device-driver layer hides differences among I/O controllers from kernel Devices vary in many dimensions Character-stream or block Sequential or random-access Sharable or dedicated Speed of operation read-write, read only, or write only
BLOCK AND CHARACTER DEVICES Block devices include disk drives Commands include read, write, seek  Raw I/O or file-system access Character devices include keyboards, mice, serial ports Commands include get, put  Libraries layered on top allow line editing
NETWORK DEVICES Different from block and character devices to have own interface Unix and Windows NT/2000 include socket interface Separates network protocol from network operation Includes select functionality (returns information about which socket has room for data or has data available to be read)
CLOCKS AND TIMERS Programmable interval timer used for timings, periodic interrupts ioctl (on UNIX) covers odd aspects of I/O such as clocks and timers Provides three basic functions Give the Current Time Give the Elapsed Time Set a Timer to Trigger Operation
BLOCKING AND NON-BLOCKING I/O Blocking - process suspended until I/O completed Easy to use and understand Insufficient for some needs Nonblocking - I/O call returns as much as available User interface, data copy (buffered I/O) Implemented via multi-threading Returns quickly with count of bytes read or written Asynchronous - process runs while I/O executes \I/O subsystem signals process when I/O completed
 
 

More Related Content

PPT
Chapter 13 - I/O Systems
PPT
Basic operational concepts.ppt
PPT
Bus interconnection
PPT
Interrupt
PPT
Modes Of Transfer in Input/Output Organization
PPTX
Computer system organization
PPTX
Modes of transfer
PPTX
Von-Neumann machine and IAS architecture
Chapter 13 - I/O Systems
Basic operational concepts.ppt
Bus interconnection
Interrupt
Modes Of Transfer in Input/Output Organization
Computer system organization
Modes of transfer
Von-Neumann machine and IAS architecture

What's hot (20)

PPTX
Interrupts on 8086 microprocessor by vijay kumar.k
PPTX
Interrupts
PPTX
Register Reference Instructions | Computer Science
PPTX
Memory management
ODP
Direct Memory Access (DMA)-Working and Implementation
PPTX
Computer registers
PPTX
General register organization (computer organization)
PPTX
Computer architecture memory system
PPTX
DMA and DMA controller
DOCX
Control Units : Microprogrammed and Hardwired:control unit
PPTX
Memory organization in computer architecture
PPTX
Computer architecture input output organization
PPTX
Deadlock ppt
PPS
Cache memory
PPTX
Presentation on Segmentation
PPT
Input output organization
PPTX
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
PDF
Disk allocation methods
PPTX
Instruction codes
PPTX
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts
Register Reference Instructions | Computer Science
Memory management
Direct Memory Access (DMA)-Working and Implementation
Computer registers
General register organization (computer organization)
Computer architecture memory system
DMA and DMA controller
Control Units : Microprogrammed and Hardwired:control unit
Memory organization in computer architecture
Computer architecture input output organization
Deadlock ppt
Cache memory
Presentation on Segmentation
Input output organization
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
Disk allocation methods
Instruction codes
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Ad

Similar to I/O System (20)

PDF
IOhardware_operting_systems_2022_libya.pdf
PPT
chapter 4 Device Management systemss.ppt
PDF
Organisasi dan Arsitektur Komputer MO-06
PPTX
IO hardware
PPT
07 input output
PDF
Unit 6
PPT
07_Input Output_Computer Architecture.ppt
PPT
07 input output
PPT
PPT
In out system
DOCX
Iosystemspre final-160922112930
DOCX
Io systems final
PPT
Chapter 6 input output
PDF
Io sys
PDF
Ch12 io systems
PPTX
3 unit-DMA-1fjgigkhlhkbkbkvkvkvkvkvkgkvkvkvv.pptx
PPT
PPTX
UNIT 5- UNDERSTANDING THE SYSTEM DESIGN PROCESS.pptx
PPTX
I/O Hardware-R.D.Sivakumar
PPTX
Computer architecture presentation
IOhardware_operting_systems_2022_libya.pdf
chapter 4 Device Management systemss.ppt
Organisasi dan Arsitektur Komputer MO-06
IO hardware
07 input output
Unit 6
07_Input Output_Computer Architecture.ppt
07 input output
In out system
Iosystemspre final-160922112930
Io systems final
Chapter 6 input output
Io sys
Ch12 io systems
3 unit-DMA-1fjgigkhlhkbkbkvkvkvkvkvkgkvkvkvv.pptx
UNIT 5- UNDERSTANDING THE SYSTEM DESIGN PROCESS.pptx
I/O Hardware-R.D.Sivakumar
Computer architecture presentation
Ad

More from Nagarajan (18)

PPT
Chapter3
PPT
Chapter2
PPT
Chapter1
PPTX
Minimax
PPT
Scheduling algorithm (chammu)
PPT
Real time os(suga)
PPT
Process synchronization(deepa)
PPT
Posix threads(asha)
PPT
Monitor(karthika)
PPT
Cpu scheduling(suresh)
PPT
Backward chaining(bala,karthi,rajesh)
PPTX
Inferno
PPTX
Javascript
PPTX
Introduction Of Artificial neural network
PPT
Perceptron
PPT
Back propagation
PPTX
Ms access
PPT
Adaline madaline
Chapter3
Chapter2
Chapter1
Minimax
Scheduling algorithm (chammu)
Real time os(suga)
Process synchronization(deepa)
Posix threads(asha)
Monitor(karthika)
Cpu scheduling(suresh)
Backward chaining(bala,karthi,rajesh)
Inferno
Javascript
Introduction Of Artificial neural network
Perceptron
Back propagation
Ms access
Adaline madaline

Recently uploaded (20)

PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Complications of Minimal Access Surgery at WLH
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Institutional Correction lecture only . . .
PDF
Insiders guide to clinical Medicine.pdf
PDF
Pre independence Education in Inndia.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
RMMM.pdf make it easy to upload and study
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
01-Introduction-to-Information-Management.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Week 4 Term 3 Study Techniques revisited.pptx
Microbial diseases, their pathogenesis and prophylaxis
O7-L3 Supply Chain Operations - ICLT Program
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Complications of Minimal Access Surgery at WLH
TR - Agricultural Crops Production NC III.pdf
Microbial disease of the cardiovascular and lymphatic systems
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Institutional Correction lecture only . . .
Insiders guide to clinical Medicine.pdf
Pre independence Education in Inndia.pdf
Pharma ospi slides which help in ospi learning
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Renaissance Architecture: A Journey from Faith to Humanism
RMMM.pdf make it easy to upload and study
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
human mycosis Human fungal infections are called human mycosis..pptx
01-Introduction-to-Information-Management.pdf

I/O System

  • 1.  
  • 2. INPUT / OUTPUT PROCESSING MAIN JOB OF COMPUTER?
  • 3. ROLE OF OPERATING SYSTEM? To manage and control I/O operations and I/O devices. TOPICS COVERED I/O Hardware I/O Application Interface
  • 4.  
  • 5. I/O HARDWARE PORT A Connection Point through which a device communicates with a computer system by sending signals
  • 6. I/O HARDWARE BUS A common set of wires used by devices for communication(daisy chain or shared direct access) Example PCI , ISA, SCSI
  • 7. I/O HARDWARE CONTROLLER A collection of electronics that can operate a port,a bus,or a device Serial port controller, SCSI controller, IDE controller The processor give commands and data to a controller to accomplish an I/O transfer Direct I/O instructions Memory-mapped I/O Direct I/O + memory mapped I/O
  • 8. Controller… I/O controller has 4 types of registers Status registers - also known as flag register or condition code register (CCR) ) is a collection of flag bits for a processor. Control registers- - is a processor register which changes or controls the general behavior of a CPU or other digital device. Data-in registers -Used by Host to get Input Data-out registers -Used by Host to send output
  • 10. A PCI Bus consists of Serial Port Controller, SCSI Bus controller etc., A serial port controller is a simple device controller and it is a chip or portion of a chip in the computer. It controls the signal s on the wires of a serial port. SCSI bus controller is contrast to serial port controller as SCSI protocol is complex . SCSI bus controller is frequently implemented as a separate circuit board or a host adapter that plugs into the computer. It consists of a processor,Microcode and Private memory to enable it to process SCSI protocol messages PCI BUS STRUCTURE
  • 11. Three interaction models between I/O controllers and CPUs Polling Interrupt Direct Memory Access(DMA) I/O HARDWARE
  • 12. POLLING Polling refers to the situation where a device is repeatedly checked for readiness. Is reasonable only if the device and controller are fast. EXAMPLE -> 2 bits are used -> The controller indicates its state through the busy bit in the status register. -> The controller sets the busy bit when it is busy working and clears the busy bit when it is ready to accept the next command
  • 13. Example continued… The host signals its wishes via the command-ready bit in the command register. The host sets the command ready bit when a command is available for the controller to execute. Process 1.The host repeatedly reads the busy bit until that bit becomes clear. 2.The host sets the write bit in the command register and writes a byte into the data out register 3.The host sets the command ready bit
  • 14. PROCESS contd… 4.When the controller notices the command ready bit is set it sets the busy bit. 5.The controller reads the command register and sees the write command. 6.It reads the data out register to get the byte and does the I/O to device. 7.The controller clears the command ready bit, clears the error bit in the status register to indicate that the device. 8.I/O succeeded, and clears the busy bit to indicate that it is finished.
  • 15. INTERRUPTS A Temporary stopping of a task for a while and Resuming it later CPU Interrupt request line triggered by I/O device Interrupt handler receives interrupts Maskable to ignore or delay some interrupts Interrupt vector to dispatch interrupt to correct handler Based on priority Some unmaskable, some maskable
  • 16. INTERRUPTS IN SIGNAL HAS PRIORITY… INTERRUPT HANDLER ACTS LIKE CPU OTHER PROCESS
  • 17. INTERRUPT Interrupt mechanism also used for exceptions and system calls Interrupt handlers can be divided into two Top half Bottom half
  • 19. DIRECT MEMORY ACCESS(DMA) Used to avoid programmed I/O for large data movement Requires DMA controller for offloading of work in case of large transfers Handshaking between DMA controller and the Device Controller is performed via a pair of wires called DMA-request and DMA-acknowledge Bypasses CPU to transfer data directly between I/O device and memory
  • 20. STEPS IN DMA TRANSFER
  • 21. APPLICATION I/O INTERFACE The OS could be designed such that new devices can be attached to the computer without the OS being rewritten with the help of Application I/O interface. I/O system calls encapsulate device behaviors in generic classes Device-driver layer hides differences among I/O controllers from kernel Devices vary in many dimensions Character-stream or block Sequential or random-access Sharable or dedicated Speed of operation read-write, read only, or write only
  • 22. BLOCK AND CHARACTER DEVICES Block devices include disk drives Commands include read, write, seek Raw I/O or file-system access Character devices include keyboards, mice, serial ports Commands include get, put Libraries layered on top allow line editing
  • 23. NETWORK DEVICES Different from block and character devices to have own interface Unix and Windows NT/2000 include socket interface Separates network protocol from network operation Includes select functionality (returns information about which socket has room for data or has data available to be read)
  • 24. CLOCKS AND TIMERS Programmable interval timer used for timings, periodic interrupts ioctl (on UNIX) covers odd aspects of I/O such as clocks and timers Provides three basic functions Give the Current Time Give the Elapsed Time Set a Timer to Trigger Operation
  • 25. BLOCKING AND NON-BLOCKING I/O Blocking - process suspended until I/O completed Easy to use and understand Insufficient for some needs Nonblocking - I/O call returns as much as available User interface, data copy (buffered I/O) Implemented via multi-threading Returns quickly with count of bytes read or written Asynchronous - process runs while I/O executes \I/O subsystem signals process when I/O completed
  • 26.  
  • 27.