Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 354 Bytes

README.md

File metadata and controls

5 lines (5 loc) · 354 Bytes

BiBuffer

  • 乒乓缓存

利用两个缓冲区,实现无锁缓存,一个缓冲区用于数据读取,一个缓冲区用于数据写入,数据写完后进行交换

Muti多个缓冲区,乒乓缓存的优化版

在实际场景中,经常遇到读快写慢的情况,因此为数据的写入创建了多个线程以匹配读数据的速度