circular buffer


circular buffer

(programming)An area of memory used to store a continuousstream of data by starting again at the beginning of thebuffer after reaching the end. A circular buffer is usuallywritten by one process and read by another. Separate read andwrite pointers are maintained. These are not allowed topass each other otherwise either unread data would beoverwritten or invalid data would be read.

A circuit may implement a hardware circular buffer.

circular buffer

An area of memory or a dedicated hardware circuit that is used to store incoming data. When the buffer is filled, new data are written starting at the beginning of the buffer. Circular buffers are typically used to hold data written by one process and read by another. In such cases, separate read and write pointers are used that are not allowed to cross each other so that unread data cannot be overwritten by new data.