First page Back Continue Last page Graphics
Buffers
It is more efficient to handle input and output streams using a buffer.
A buffer is an intermediate, temporary storage facility.
Matching of devices.
- Typical disk drive packages data in 512 byte blocks.
- Typical program reads one byte at a time.
- 512 from disk to buffer in one transfer.
- 1 at a time from buffer to program. Fig 17.2