SlideShare a Scribd company logo
1 of 46
1
Input/Output
Chapter 5
5.1 Principles of I/O hardware
5.2 Principles of I/O software
5.3 I/O software layers
5.4 I/O devices: Disks,
Character-oriented terminals,
Clocks
2
5.1 Principles of I/O hardware
3
Principles of I/O Hardware
Types of I/O devices
Two main groups: Block and Character Devices
• Block devices include disk drives
– Commands include read, write, seek
– Raw I/O or file-system access
– Memory-mapped file access possible
• Character devices include keyboards, mice, serial ports
– Commands include get, put
– Libraries layered on top allow line editing
4
Principles of I/O Hardware
Types of I/O devices
Some typical device, network, and data base rates
5
Principles of I/O Hardware
Common concepts
Common concepts
– I/O Device Controller
– I/O Port
– I/O Bus
6
Principles of I/O Hardware
Device Controllers
• Components of a simple personal computer
Monitor
Bus
7
Principles of I/O Hardware
Device Controllers
• I/O devices have components:
– electromechanical component
– electronic component
• The electronic component is the device
controller
– may be able to handle multiple devices
• Controller's tasks (Disk)
– convert serial bit stream to block of bytes
– perform error correction as necessary
– make available to main memory
8
Principles of I/O Hardware
I/O Port
I/O Port is a register in device interface. Example: Device I/O Port
Locations on PCs (partial)
9
Principles of I/O Hardware
A Typical PC Bus Structure
10
Principles of I/O Hardware
I/O address
• I/O instructions control devices
• Devices have addresses, used by
– Direct I/O instructions
– Memory-mapped I/O
11
Principles of I/O Hardware
Memory-Mapped I/O (1)
• Separate I/O and memory space
• Memory-mapped I/O
• Hybrid
12
Principles of I/O Hardware
Memory-Mapped I/O (2)
(a) A single-bus architecture
(b) A dual-bus memory architecture
13
Principles of I/O Hardware
Data transfer Method between CPU and I/O device
Three Data I/O transfer Methods:
• Programmed I/O
• Interrupt-Driven I/O
• Direct Memory Access - DMA
14
Principles of I/O Hardware
Programmed I/O, Polling
• Determines state of device
– ready
– busy
– error
• Busy-wait cycle to wait for I/O from device
15
Principles of I/O Hardware
Interrupt-Driven I/O
How interrupts happens. Connections between devices and
interrupt controller actually use interrupt lines on the bus
rather than dedicated wires
17
Principles of I/O Hardware
Example: Interrupts of PC computer
18
Principles of I/O Hardware
Direct Memory Access (DMA)
Operation of a DMA transfer
19
Principles of I/O Hardware
Example: DMA Transfer in PC Computer
20
5.2 Principles of I/O software
21
Principles of I/O Software
Goals of I/O Software (1)
• Device independence
– programs can access any I/O device
– without specifying device in advance
(floppy, hard drive, or CD-ROM)
• Uniform naming
– name of a file or device is a string or an integer
– not depending on which machine
• Error handling
– handle as close to the hardware as possible
22
Principles of I/O Software
Goals of I/O Software (2)
• Synchronous vs. asynchronous transfers
– blocked transfers vs. interrupt-driven
• Buffering
– data coming off a device cannot be stored in
final destination
• Sharable vs. dedicated devices
– disks are sharable
– tape drives would not be
23
Principles of I/O Software
Programmed I/O (1)
Steps in printing a string
24
Principles of I/O Software
Programmed I/O (2)
Writing a string to the printer using
programmed I/O
25
Principles of I/O Software
Interrupt-Driven I/O
• Writing a string to the printer using interrupt-driven I/O
– Code executed when print system call is made
– Interrupt service procedure
26
Principles of I/O Software
I/O Using DMA
• Printing a string using DMA
– code executed when the print system call is made
– interrupt service procedure
27
A Kernel I/O Structure:
Hardware And Software
28
5.3 I/O software layers
29
I/O Software Layers
Layers of the I/O Software System
30
I/O Software Layers
Interrupt Handlers (1)
• Interrupt handlers are best hidden
– have driver starting an I/O operation block until
interrupt notifies of completion
• Interrupt procedure does its task
– then unblocks driver that started it
• Steps must be performed in software after interrupt
completed
1. Save regs not already saved by interrupt hardware
2. Set up context for interrupt service procedure
31
I/O Software Layers
Interrupt Handlers (2)
3. Set up stack for interrupt service procedure
4. Ack interrupt controller, reenable interrupts
5. Copy registers from where saved to process
table
6. Run service procedure
7. Set up MMU context for process to run next
8. Load new process' registers
9. Start running the new process
32
I/O Software Layers
Device Drivers
• Logical position of device drivers is shown here
• Communications between drivers and device controllers
goes over the bus
33
I/O Software Layers
Device-Independent I/O Software (1)
Functions of the device-independent I/O software
Uniform interfacing for device drivers
Buffering
Error reporting
Allocating and releasing dedicate devices
Providing a device-independent block
size
34
I/O Software Layers
Device-Independent I/O Software (2)
(a) Without a standard driver interface
(b) With a standard driver interface
35
I/O Software Layers
Device-Independent I/O Software (3)
(a) Unbuffered input
(b) Buffering in user space
(c) Buffering in the kernel followed by copying to user space
(d) Double buffering in the kernel
36
I/O Software Layers
Device-Independent I/O Software (4)
Networking may involve many copies
37
User-Space I/O Software
Layers of the I/O system and the main
functions of each layer
38
5.4 I/O devices
39
I/O devices
• Storage devices: Hard Disks, CD-ROM,
CD-R, DVD…
• Display devices: Character-oriented
terminals, Graphical user interfaces
• Clocks
40
Disk Hardware (1)
41
Disk Hardware (2)
• Raid levels 0 through 2
• Backup and parity drives are shaded
42
Disk Hardware (3)
• Raid levels 3 through 5
• Backup and parity drives are shaded
43
Display Hardware (1)
Memory-mapped displays
• driver writes directly into display's video RAM
Parallel port
44
Display Hardware (2)
45
Display Hardware (3)
46
Character Oriented Terminals
RS-232 Terminal Hardware
• An RS-232 terminal communicates with computer 1 bit at a time
• Called a serial line – bits go out in series, 1 bit at a time
• Windows uses COM1 and COM2 ports, first to serial lines
• Computer and terminal are completely independent
47
Clocks
Clock Hardware
A programmable clock

More Related Content

Similar to Chapter-05-IO (2).ppt

Chapter 05
Chapter 05Chapter 05
Chapter 05
Google
 
FANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptx
FANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptxFANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptx
FANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptx
PannaBushratul
 

Similar to Chapter-05-IO (2).ppt (20)

PC Components.ppt
PC Components.pptPC Components.ppt
PC Components.ppt
 
PC Components.pptx
PC Components.pptxPC Components.pptx
PC Components.pptx
 
PC Components.ppt
PC Components.pptPC Components.ppt
PC Components.ppt
 
Computer basic
Computer basicComputer basic
Computer basic
 
I/o management and disk scheduling .pptx
I/o management and disk scheduling .pptxI/o management and disk scheduling .pptx
I/o management and disk scheduling .pptx
 
System unit and ip cycle
System unit and ip cycleSystem unit and ip cycle
System unit and ip cycle
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Comp hardware Introduction
Comp hardware IntroductionComp hardware Introduction
Comp hardware Introduction
 
High speed I/O
High speed I/OHigh speed I/O
High speed I/O
 
ch1.pptx
ch1.pptxch1.pptx
ch1.pptx
 
Pc components
Pc componentsPc components
Pc components
 
Os introduction
Os introductionOs introduction
Os introduction
 
Os introduction
Os introductionOs introduction
Os introduction
 
IGCSE_ICT_Chapter 1.pptx
IGCSE_ICT_Chapter 1.pptxIGCSE_ICT_Chapter 1.pptx
IGCSE_ICT_Chapter 1.pptx
 
Io management disk scheduling algorithm
Io management disk scheduling algorithmIo management disk scheduling algorithm
Io management disk scheduling algorithm
 
I/O systems chapter 12 OS
I/O systems chapter 12 OS I/O systems chapter 12 OS
I/O systems chapter 12 OS
 
FANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptx
FANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptxFANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptx
FANDAMENTAL OF COMPUTER SCIENCE FOR ENGINEERING.pptx
 
UNIT-III ES.ppt
UNIT-III ES.pptUNIT-III ES.ppt
UNIT-III ES.ppt
 
Computer basics
Computer basicsComputer basics
Computer basics
 
Ch01
Ch01Ch01
Ch01
 

Recently uploaded

Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...
gajnagarg
 
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
nirzagarg
 
如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一
如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一
如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一
fhjlokjhi
 
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
Health
 
如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查
如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查
如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查
huxs9sacp
 
Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...
Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...
Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...
gajnagarg
 
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
ezgenuh
 
如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一
如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一
如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一
avy6anjnd
 
在线定制(UBC毕业证书)英属哥伦比亚大学毕业证成绩单留信学历认证原版一比一
在线定制(UBC毕业证书)英属哥伦比亚大学毕业证成绩单留信学历认证原版一比一在线定制(UBC毕业证书)英属哥伦比亚大学毕业证成绩单留信学历认证原版一比一
在线定制(UBC毕业证书)英属哥伦比亚大学毕业证成绩单留信学历认证原版一比一
qh1ao5mm
 

Recently uploaded (20)

Mercedes Check Engine Light Solutions Precision Service for Peak Performance
Mercedes Check Engine Light Solutions Precision Service for Peak PerformanceMercedes Check Engine Light Solutions Precision Service for Peak Performance
Mercedes Check Engine Light Solutions Precision Service for Peak Performance
 
Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...
 
Housewife Call Girl in Faridabad ₹7.5k Pick Up & Drop With Cash Payment #8168...
Housewife Call Girl in Faridabad ₹7.5k Pick Up & Drop With Cash Payment #8168...Housewife Call Girl in Faridabad ₹7.5k Pick Up & Drop With Cash Payment #8168...
Housewife Call Girl in Faridabad ₹7.5k Pick Up & Drop With Cash Payment #8168...
 
West Bengal Factories Rules, 1958.bfpptx
West Bengal Factories Rules, 1958.bfpptxWest Bengal Factories Rules, 1958.bfpptx
West Bengal Factories Rules, 1958.bfpptx
 
John deere 7200r 7230R 7260R Problems Repair Manual
John deere 7200r 7230R 7260R Problems Repair ManualJohn deere 7200r 7230R 7260R Problems Repair Manual
John deere 7200r 7230R 7260R Problems Repair Manual
 
Is Your Volvo XC90 Displaying Anti-Skid Service Required Alert Here's Why
Is Your Volvo XC90 Displaying Anti-Skid Service Required Alert Here's WhyIs Your Volvo XC90 Displaying Anti-Skid Service Required Alert Here's Why
Is Your Volvo XC90 Displaying Anti-Skid Service Required Alert Here's Why
 
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
 
Why Does My Porsche Cayenne's Exhaust Sound So Loud
Why Does My Porsche Cayenne's Exhaust Sound So LoudWhy Does My Porsche Cayenne's Exhaust Sound So Loud
Why Does My Porsche Cayenne's Exhaust Sound So Loud
 
如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一
如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一
如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一
 
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
 
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
+97470301568>>buy vape oil,thc oil weed,hash and cannabis oil in qatar doha}}
 
Faridabad Call Girls ₹7.5k Pick Up & Drop With Cash Payment 8168257667 Call G...
Faridabad Call Girls ₹7.5k Pick Up & Drop With Cash Payment 8168257667 Call G...Faridabad Call Girls ₹7.5k Pick Up & Drop With Cash Payment 8168257667 Call G...
Faridabad Call Girls ₹7.5k Pick Up & Drop With Cash Payment 8168257667 Call G...
 
Effortless Driving Experience Premier Mercedes Sprinter Suspension Service
Effortless Driving Experience Premier Mercedes Sprinter Suspension ServiceEffortless Driving Experience Premier Mercedes Sprinter Suspension Service
Effortless Driving Experience Premier Mercedes Sprinter Suspension Service
 
如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查
如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查
如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查
 
01552_14_01306_8.0_EPS_CMP_SW_VC2_Notebook.doc
01552_14_01306_8.0_EPS_CMP_SW_VC2_Notebook.doc01552_14_01306_8.0_EPS_CMP_SW_VC2_Notebook.doc
01552_14_01306_8.0_EPS_CMP_SW_VC2_Notebook.doc
 
Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...
Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...
Top profile Call Girls In dharamshala [ 7014168258 ] Call Me For Genuine Mode...
 
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
一比一原版(UdeM学位证书)蒙特利尔大学毕业证学历认证怎样办
 
如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一
如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一
如何办理伦敦商学院毕业证(LBS毕业证)毕业证成绩单原版一比一
 
在线定制(UBC毕业证书)英属哥伦比亚大学毕业证成绩单留信学历认证原版一比一
在线定制(UBC毕业证书)英属哥伦比亚大学毕业证成绩单留信学历认证原版一比一在线定制(UBC毕业证书)英属哥伦比亚大学毕业证成绩单留信学历认证原版一比一
在线定制(UBC毕业证书)英属哥伦比亚大学毕业证成绩单留信学历认证原版一比一
 
Marathi Call Girls Santacruz WhatsApp +91-9930687706, Best Service
Marathi Call Girls Santacruz WhatsApp +91-9930687706, Best ServiceMarathi Call Girls Santacruz WhatsApp +91-9930687706, Best Service
Marathi Call Girls Santacruz WhatsApp +91-9930687706, Best Service
 

Chapter-05-IO (2).ppt

  • 1. 1 Input/Output Chapter 5 5.1 Principles of I/O hardware 5.2 Principles of I/O software 5.3 I/O software layers 5.4 I/O devices: Disks, Character-oriented terminals, Clocks
  • 2. 2 5.1 Principles of I/O hardware
  • 3. 3 Principles of I/O Hardware Types of I/O devices Two main groups: Block and Character Devices • Block devices include disk drives – Commands include read, write, seek – Raw I/O or file-system access – Memory-mapped file access possible • Character devices include keyboards, mice, serial ports – Commands include get, put – Libraries layered on top allow line editing
  • 4. 4 Principles of I/O Hardware Types of I/O devices Some typical device, network, and data base rates
  • 5. 5 Principles of I/O Hardware Common concepts Common concepts – I/O Device Controller – I/O Port – I/O Bus
  • 6. 6 Principles of I/O Hardware Device Controllers • Components of a simple personal computer Monitor Bus
  • 7. 7 Principles of I/O Hardware Device Controllers • I/O devices have components: – electromechanical component – electronic component • The electronic component is the device controller – may be able to handle multiple devices • Controller's tasks (Disk) – convert serial bit stream to block of bytes – perform error correction as necessary – make available to main memory
  • 8. 8 Principles of I/O Hardware I/O Port I/O Port is a register in device interface. Example: Device I/O Port Locations on PCs (partial)
  • 9. 9 Principles of I/O Hardware A Typical PC Bus Structure
  • 10. 10 Principles of I/O Hardware I/O address • I/O instructions control devices • Devices have addresses, used by – Direct I/O instructions – Memory-mapped I/O
  • 11. 11 Principles of I/O Hardware Memory-Mapped I/O (1) • Separate I/O and memory space • Memory-mapped I/O • Hybrid
  • 12. 12 Principles of I/O Hardware Memory-Mapped I/O (2) (a) A single-bus architecture (b) A dual-bus memory architecture
  • 13. 13 Principles of I/O Hardware Data transfer Method between CPU and I/O device Three Data I/O transfer Methods: • Programmed I/O • Interrupt-Driven I/O • Direct Memory Access - DMA
  • 14. 14 Principles of I/O Hardware Programmed I/O, Polling • Determines state of device – ready – busy – error • Busy-wait cycle to wait for I/O from device
  • 15. 15 Principles of I/O Hardware Interrupt-Driven I/O How interrupts happens. Connections between devices and interrupt controller actually use interrupt lines on the bus rather than dedicated wires
  • 16. 17 Principles of I/O Hardware Example: Interrupts of PC computer
  • 17. 18 Principles of I/O Hardware Direct Memory Access (DMA) Operation of a DMA transfer
  • 18. 19 Principles of I/O Hardware Example: DMA Transfer in PC Computer
  • 19. 20 5.2 Principles of I/O software
  • 20. 21 Principles of I/O Software Goals of I/O Software (1) • Device independence – programs can access any I/O device – without specifying device in advance (floppy, hard drive, or CD-ROM) • Uniform naming – name of a file or device is a string or an integer – not depending on which machine • Error handling – handle as close to the hardware as possible
  • 21. 22 Principles of I/O Software Goals of I/O Software (2) • Synchronous vs. asynchronous transfers – blocked transfers vs. interrupt-driven • Buffering – data coming off a device cannot be stored in final destination • Sharable vs. dedicated devices – disks are sharable – tape drives would not be
  • 22. 23 Principles of I/O Software Programmed I/O (1) Steps in printing a string
  • 23. 24 Principles of I/O Software Programmed I/O (2) Writing a string to the printer using programmed I/O
  • 24. 25 Principles of I/O Software Interrupt-Driven I/O • Writing a string to the printer using interrupt-driven I/O – Code executed when print system call is made – Interrupt service procedure
  • 25. 26 Principles of I/O Software I/O Using DMA • Printing a string using DMA – code executed when the print system call is made – interrupt service procedure
  • 26. 27 A Kernel I/O Structure: Hardware And Software
  • 28. 29 I/O Software Layers Layers of the I/O Software System
  • 29. 30 I/O Software Layers Interrupt Handlers (1) • Interrupt handlers are best hidden – have driver starting an I/O operation block until interrupt notifies of completion • Interrupt procedure does its task – then unblocks driver that started it • Steps must be performed in software after interrupt completed 1. Save regs not already saved by interrupt hardware 2. Set up context for interrupt service procedure
  • 30. 31 I/O Software Layers Interrupt Handlers (2) 3. Set up stack for interrupt service procedure 4. Ack interrupt controller, reenable interrupts 5. Copy registers from where saved to process table 6. Run service procedure 7. Set up MMU context for process to run next 8. Load new process' registers 9. Start running the new process
  • 31. 32 I/O Software Layers Device Drivers • Logical position of device drivers is shown here • Communications between drivers and device controllers goes over the bus
  • 32. 33 I/O Software Layers Device-Independent I/O Software (1) Functions of the device-independent I/O software Uniform interfacing for device drivers Buffering Error reporting Allocating and releasing dedicate devices Providing a device-independent block size
  • 33. 34 I/O Software Layers Device-Independent I/O Software (2) (a) Without a standard driver interface (b) With a standard driver interface
  • 34. 35 I/O Software Layers Device-Independent I/O Software (3) (a) Unbuffered input (b) Buffering in user space (c) Buffering in the kernel followed by copying to user space (d) Double buffering in the kernel
  • 35. 36 I/O Software Layers Device-Independent I/O Software (4) Networking may involve many copies
  • 36. 37 User-Space I/O Software Layers of the I/O system and the main functions of each layer
  • 38. 39 I/O devices • Storage devices: Hard Disks, CD-ROM, CD-R, DVD… • Display devices: Character-oriented terminals, Graphical user interfaces • Clocks
  • 40. 41 Disk Hardware (2) • Raid levels 0 through 2 • Backup and parity drives are shaded
  • 41. 42 Disk Hardware (3) • Raid levels 3 through 5 • Backup and parity drives are shaded
  • 42. 43 Display Hardware (1) Memory-mapped displays • driver writes directly into display's video RAM Parallel port
  • 45. 46 Character Oriented Terminals RS-232 Terminal Hardware • An RS-232 terminal communicates with computer 1 bit at a time • Called a serial line – bits go out in series, 1 bit at a time • Windows uses COM1 and COM2 ports, first to serial lines • Computer and terminal are completely independent