摘要 |
<p>Provided are a method and system for accessing cells of a ring buffer by one or more writers, a method and system for accessing cells of a ring buffer by one or more readers, and an improved multi-reader, multi-writer lock-free ring buffer. In general, the invention provides a method of providing lock-free access to a ring buffer by multiple readers and/or writers using only two local variables and a compare-and-swap ("CAS") operation.</p> |