I/O Flashcards
What are the three techniques of I/O?
Programmed I/O
Interrupt-driven I/O
Direct memory access (DMA)
Describe Programmed I/O
the CPU directly manages the data transfer between the I/O device and memory.
Describe Interrupt-driven I/O
when an I/O device has completed a task or needs attention, it sends an interrupt signal to the CPU, prompting it to pause what it’s doing and handle the I/O request.
Describe DMA
A DMA controller takes over the data transfer task between an I/O device and memory, allowing the CPU to continue with other tasks.
What is I/O Buffering?
Using a holding area to temporarily store data being transferred between an I/O device and the main memory or CPU.
Why do we buffer?
Buffering helps smooth out the differences in data transfer rates between devices, allowing for more efficient and streamlined data processing.
What are the two types of Buffering?
Block oriented and Stream Oriented.
Three Categories of I/O Devices
- Human-readable
- Machine Readable
- Communication
Describe Block Oriented Buffering.
Information is stored in fixed sized blocks
Transfers are made a block at a time
Used for disks and USB keys
Describe Stream- oriented buffering
Transfer information as a stream of bytes
Used for terminals, printers, communication ports, mouse and other pointing devices, and most other devices that are not secondary storage