I have 2 threads.

each of them reads some data from a shared buffer.

currentDataBuffer.get(thisID); //currentDataBuffer is my shared buffer object

I want to block thread after every call,...