C++ Language/Std/Multithreading/Semaphores/RingBuffer

From Wikibooks, open books for an open world
Jump to navigation Jump to search

In an architecture where one thread produces a stream of products while another thread consumes those products, putting a "ring buffer" between the threads will allow variation in the pace of production and consumption.

Additional information about ring buffers