Top "Blockingqueue" questions

A queue data structure that that waits (suspends the current thread) for the queue to become non-empty when retrieving an element and for space to become available in the queue when storing an element.

implement-your-own blocking queue in java

I know this question has been asked and answered many times before, but I just couldn't figure out a trick …

java multithreading synchronization java.util.concurrent blockingqueue
"Closing" a blocking queue

I’m using java.util.concurrent.BlockingQueue in a very simple producer-consumer scenario. E.g. this pseudo code depicts the …

java multithreading blockingqueue
Queue Full, On depth of the Blocking Queue, clarification needed

When populating the queue from the contents of the file, depth does not seem to ever increase, as elements are …

java blockingqueue
producer/consumer work queues

I'm wrestling with the best way to implement my processing pipeline. My producers feed work to a BlockingQueue. On the …

java concurrency executorservice producer-consumer blockingqueue
Multiple Producer Multiple Consumer Multithreading Java

I'm trying out Multiple Producer - Multiple Consumer use case of Producer-Consumer problem. I'm using BlockingQueue for sharing common queue …

java multithreading producer-consumer blockingqueue
ScheduledExecutorService with variable delay

Suppose I have a task that is pulling elements from a java.util.concurrent.BlockingQueue and processing them. public void …

java concurrency executorservice blockingqueue
Java BlockingQueue with batching?

I am interested in a data structure identical to the Java BlockingQueue, with the exception that it must be able …

java queue producer-consumer blockingqueue
java BlockingQueue does not have a blocking peek?

I have a blocking queue of objects. I want to write a thread that blocks till there is a object …

java queue peek blockingqueue
Being asynchronously notified of a BlockingQueue having an item available

I need an Object to be asynchronously notified when some BlockingQueue has got an item to give. I've searched both …

java concurrency blockingqueue
Does polling block other operations in LinkedBlockingQueue?

In the pseudocode below I have a poll() function that gets called forever in the main thread. When I do …

java multithreading blockingqueue