Patent ID: 8234423

Claim:
A method comprising: determining whether a first condition is satisfied, the first condition being associated with: a number of a plurality of writers currently accessing a circular buffer memory, or a number of a plurality of readers currently accessing the circular buffer memory; determining whether a second condition is satisfied based on an address of a writing block of the circular buffer memory, an address of a reader block of the circular buffer memory, and a length of a block to be written to or read from the circular buffer memory; incrementing a counter associated with the circular buffer memory when the first condition and the second condition are satisfied, incrementing the counter setting the counter equal to a current value; and accessing, based on the counter being incremented and by one of the plurality of writers or by one of the plurality of readers, a location of the circular buffer memory, the location being determined based on a variable that is set equal to the current value of the counter.