Top "Producer-consumer" questions

The Producer-Consumer Problem (also known as the bounded-buffer problem) is a classical example of a multi-process synchronization problem.

Producer/Consumer threads using a Queue

I'd like to create some sort of Producer/Consumer threading app. But I'm not sure what the best way to …

java multithreading queue producer-consumer
Is Zookeeper a must for Kafka?

In Kafka, I would like to use only a single broker, single topic and a single partition having one producer …

partitioning apache-zookeeper producer-consumer apache-kafka broker
Blocking queue and multi-threaded consumer, how to know when to stop

I have a single thread producer which creates some task objects which are then added into an ArrayBlockingQueue (which is …

java multithreading producer-consumer blockingqueue
C# producer/consumer

i've recently come across a producer/consumer pattern c# implementation. it's very simple and (for me at least) very elegant. …

c# design-patterns monitor producer-consumer
How to iterate Queue.Queue items in Python?

Does anyone know a pythonic way of iterating over the elements of a Queue.Queue without removing them from the …

python queue producer-consumer
How to solve Warning: React does not recognize the X prop on a DOM element

I'm using a thing called react-firebase-js to handle firebase auth, but my understanding of react and of the provider-consumer idea …

javascript reactjs firebase firebase-authentication producer-consumer
producer - consumer multithreading in Java

I want to write program using multithreading wait and notify methods in Java. This program has a stack (max-length = 5). Producer …

java multithreading wait producer-consumer notify
C Confused on how to initialize and implement a pthread mutex and condition variable

I'm a little bit confused on how to initialize and implement a pthread mutex and condition variable. The goal of …

c pthreads conditional-statements mutex producer-consumer
Try Dequeue in ConcurrentQueue

The TryDequeue in ConcurrentQueue will return false if no items in Queue. If the Queue is empty I need that …

c# producer-consumer concurrent-queue
producer-consumer problem with pthreads

I'm attempting to solve the producer-consumer problem using pthreads and semaphores, but it looks like the producer threads aren't producing, …

c multithreading pthreads producer-consumer