本文介绍了在C中使用共享内存实现的循环缓冲区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
出于什么原因,我已经尝试使用乒乓缓冲区概念.
我有一个UDP接收器,但在顺序
期间,我应该最多接收10 GB的文件
执行可能会丢失数据包(8K).....一个数据包为8K ....因为缺少10GB
250个数据包,每1 GB丢失50个数据包.
所以我尝试了乒乓球的概念和循环缓冲区,但我不会工作...任何人
与我分享想法....
I am already tried with ping pong buffer concept for what reason is .
i have a one UDP receiver i should receive upto 10 gb files but during the sequential
execution it might lose the packet(8K).....one packet is 8K ....for 10gb is missing
250 packets and for 1 gb it missing 50 packets.
so i tried with the ping pong concept and circular buffer i wont work .....any one
have idea share with me....
推荐答案
这篇关于在C中使用共享内存实现的循环缓冲区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!