Obviously the easiest solution here is to use a mutual exclusion mechanism like a mutex, but this comes with a severe performance penalty. A lock-free ring buffer (LFRB) accomplishes the same ...
"Hydrogen Ions". By H. T. S. Britton . Hitchcock, D. I., and Taylor, A. C., J. Amer. Chem. Soc., 1812 1937). Michaelis, L., "Die Wasserstoffionenkorizentration ...
While your uncle might have taught you the classic wax-and-elbow-grease method for tackling light scratches and swirl marks, technology has brought us a much better solution: the car buffer.