Input/output
Input/output
Input/Output
5.1 Principles of I/O hardware
5.2 Principles of I/O software
5.3 I/O software layers
5.4 Disks
5.5 Clocks
5.6 Character-oriented terminals
5.7 Graphical user interfaces
5.8 Network terminals
5.9 Power management
1
Device Controllers
I/O devices have components:
mechanical component
electronic component
Controller's tasks
convert serial bit stream to block of bytes
perform error correction as necessary
make available to main memory
3
Interrupts Revisited
Uniform naming
name of a file or device a string or an integer
not depending on which machine
Error handling
handle as close to the hardware as possible
8
Buffering
data coming off a device cannot be stored in
final destination
Interrupt-Driven I/O
Device Drivers
Layers of the I/O system and the main functions of each layer
Disks
Disk Hardware (1)
A disk sector
3
No interleaving
Single interleaving
Double interleaving
3
Seek time
Rotational delay
Actual transfer time
Pending
requests
Error Handling
Stable Storage
Clocks
Clock Hardware
A programmable clock
3
Soft Timers
A second clock available for timer interrupts
specified by applications
no problems if interrupt frequency is low
Output Software
Parallel port
Memory-mapped displays
driver writes directly into display's video RAM
Corresponding screen
the xs are attribute bytes
Input Software
Keyboard driver delivers a number
driver converts to characters
uses a ASCII table
Network Terminals
X Windows (1)
X Windows (2)
Messages used in the SLIM protocol from the server to the terminals
Examples
change from color output to black and white
speech recognition reduces vocabulary
less resolution or detail in an image