I have implemented a ring buffer which two different threads use.
The first thread adds elements to the front of the ring buffer while the second rea