OneToOneConcurrentArrayQueue :单个producer/consumer队列的无锁高性能
无锁算法能获得无限的性能Lock-Free Algorithms For Ultimate Performance一文阐述了在一个队列在单个producer/consumer(只有一个生产者和一个消费者)情况下,可以通过无锁获得比JDK原生ArrayBlockingQueue 更高性能。
附图是测试结果,最后一行是OneToOneConcurrentArrayQueue3,代码下载:https://github.com/mjpt777/examples/tree/master/src/java/uk/co/real_logic/queues