Double buffering is a technique that allows an I/O channel and a processor to operate in parallel. On double-buffered input, for example, while a processor consumes one set of data in one buffer, the channel reads the next set of data into the other buffer so that the data will (hopefully) be ready for the processor. Explain in detail how a triple-buffering scheme might operate.
What will be an ideal response?
Consider a triple-buffered input scheme. First the channel reads data into buffer1. As the processor processes the data in buffer1, the channel proceeds to read data into buffer2 so that the data will (hopefully) be ready for the processor when the processor needs it. When the channel finishes reading data into buffer2, it begins reading data into buffer3, attempting to stay ahead of the processor. Eventually, the channel will want to deposit more data, so it might need to wait until the processor is finished processing the data in buffer1. Occasionally, the processor might need to wait for the channel to deposit more data for it to work with. Thus, the depositing of data and the reading of the data proceed in circular fashion using buffer1, then buffer2, then buffer3.This cycle repeats until all the data has been processed.
You might also like to view...
A ________ is a location that physically houses equipment that is used to store, manage, process, and exchange digital data and information
A) server B) data center C) router D) switch
A ________ style can behave as either a character style or paragraph style
A) linked B) merged C) character D) paragraph