Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 636 Bytes

Ex_1_3_39.md

File metadata and controls

24 lines (15 loc) · 636 Bytes
title date draft tags categories
Algorithm4 Java Solution 1.3.39
2019-07-04 05:47:10 +0800
false
JAVA
TECH
archives

1.3.39

Problem:

Ring buffer. A ring buffer, or circular queue, is a FIFO data structure of a fixed size N. It is useful for transferring data between asynchronous processes or for storing log files. When the buffer is empty, the consumer waits until data is deposited; when the buffer is full, the producer waits to deposit data. Develop an API for a RingBuffer and an implementation that uses an array representation (with circular wrap-around).

Solution:

Reference: