How does a circularBuffer improve performance vs competing for a particular memory address(mutex suspends the other)? [closed]

StackOverflow https://stackoverflow.com/questions/18320405

문제

In theory memory circularBuffer sounds like a good idea... the setting and the getting are never at the same address. However the limiting factor in the hardware. The computer will only allow use to access one memory location at a time. So then how can a circularBuffer improve performance ??

도움이 되었습니까?

해결책

This link gives some reasons why circular buffers offer better performance than synchronized access to a single, shared data structure.

What hardware are you using, that only allows access to one memory location at a time?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top