Don't know if I have the description is clear, is to improve the efficiency of thread B to send, not in the thread B take the data, the thread A in A wait state, don't want to use the lock,
CodePudding user response:
B read slowly, that you write is sure I have plenty of time to waiting, unless you use two Buf, or three Buf,CodePudding user response:
Cannot raise rate of B, want to save resources can be considered in the software to simulate the interrupt, the underlying hardware speed matching problem is doing just that,