Ring buffer synchronization
807569Jul 4 2006 — edited Jul 6 2006How to make sure that the thread using read index and
the thread using write index don't access the same index
in the ring buffer at the same time?
I can't use wait() and notify(), since that way the
threads will have to wait for the other one to be ready.
I want the writing thread to be able to write data
to the buffer at his own pace as long as it doesn't
write over a data that has not been read yet.
kari-matti