Design
spin.txt
Associated article: Spin Buffers
Tags: Web Development .NET Security C/C++ Open Source Parallel Embedded Systems JVM Languages Design
Published source code accompanying the article by Prashanth Hirematada in which he examines Spin Buffers that eliminate the need for synchronization when you are writing high-performance applications. Also see SPIN.ZIP.
Spin Buffers
by Prashanth Hirematada
Listing One
public class RingBuffer {
private final static int SIZE = 3000000;
private Object m_bfr[] = new Object[SIZE];
private int m_rPtr=0;
private int m_wPtr=0;
private int m_size=0;
/** Creates a new instance of RingBuffer */
...


