Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
645 views
in Technique[技术] by (71.8m points)

nio - FIFO circular queue in Java

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...