I want a first-in-first-out circular queue. Is there a library available?
My application has a buffer, one thread writes data inward and the other thread reads data.
The speed of the read thread and the write thread are inconsistent, so I can't ask that the buffer must be read before writing, so ByteBuffer
may not meet my requirements.
Because of frequent reading and writing, is there a simple way for ByteBuffer
to meet this demand
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…