A Ping Pong Buffer is a double buffer that is used to speed up a device that can overlap the I/O operation with the data processing operation. One buffer is used to hold a block of data so that a reader device will see a complete (old) version of the data, while in the other buffer a writer device is creating a new (partial) version of data. When the new block of data is complete and self consistent, the reader and the writer device will alternate the two buffers. As a result, the usage of double buffer increases the overall throughput of a device and helps to prevent eventual bottlenecks.
乒乓缓存是一种双缓存机制,用来加速同时存在I/O操作以及数据处理操作的设备。一个缓存用来保存旧版本的数据供读设备读取,与此同时,另一个缓存保存写设备产生的新版本数据。当新数据完成时,读设备和写设备将会交换两个缓存,双缓存机制将会提高设备的吞吐量,最终有助于避免瓶颈的产生。