In: Computer Science
how double buffering minimizes the idle time for devices and maximize their throughput
Double buffering means a device which have two buffers. One buffer is used for reading and another buffer is used for writing.
The below diagram shows how double buffer works :
In above diagram, shows that Monitor is accessing the data from buffer 2 , and at a same time buffer1 is filling with data which to be processed next in buffer2. The both operations are done at a time .
By this technique, user can reduce the work like filling the data in buffer to be processed on monitor, reading the data from the same buffer. In this technique, user is not required to fill the data in buffer. This makes the time consuming is less because reading and writing operations are done simultaneously. By this technique, it minimizes the idle time. And Maximum throughput is achieved because of fast data transferring from disk to monitor(as shown in diagram) by using two buffers (one is filling(Writing), one is for reading) which makes the execution faster.