Input Output Buffering of Operating Dystem
Input Output Buffering of Operating Dystem
1
What is buffer……...?
• A buffer is a temporary storage location for data while the data is being
transferred.
2
• I/O buffering is the mechanism which is used to increase the throughput of I/o
operation.
• “Input buffering” is the technique of having the input device read information into
the primary memory(buffer) before the process requested it.
• “Output buffering”is the technique of saving the information in the memory and
then writing it to the device while the process continues execution.
3
• In this mechanism the CPU copy the needed data from storage disk to a buffer .
● When any process need to use that data it take it from the I/O buffer.
● The latency of I/O operation is alleviated by having one or more I/O buffer
associated with each device.
4
5
Why we use I/O buffer………?
• If we don’t use the input output buffer then the throughput of the CPU will
decreases.
● The time between the initiation of an I/O process and its completion may be
millions of processor clock cycles.