Java.util.concurrent Queues: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:
=Blocking Queue=
=Blocking Queue=


<blockquote style="background-color: AliceBlue; border: solid thin LightSteelBlue;">
{{External|https://docs.oracle.com/javase/10/docs/api/java/util/concurrent/BlockingQueue.html}}
:<br>https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/BlockingQueue.html<br><br>
</blockquote>


<tt>java.util.concurrent.BlockingQueue<E></tt> is a <tt>java.util.Queue</tt> that offers operations that wait for the queue to become non-empty when retrieving an element, and wait for space to become available in the queue when storing an element. When configured with a fixed size (example <tt>ArrayBlockingQueue</tt>, it can be used as a memory sprawl control mechanisms, providing memory-safe separation between threads.
<tt>java.util.concurrent.BlockingQueue<E></tt> is a <tt>java.util.Queue</tt> that offers operations that wait for the queue to become non-empty when retrieving an element, and wait for space to become available in the queue when storing an element. When configured with a fixed size (example <tt>ArrayBlockingQueue</tt>, it can be used as a memory sprawl control mechanisms, providing memory-safe separation between threads.

Revision as of 17:11, 23 March 2018

Internal

Overview

Blocking Queue

https://docs.oracle.com/javase/10/docs/api/java/util/concurrent/BlockingQueue.html

java.util.concurrent.BlockingQueue<E> is a java.util.Queue that offers operations that wait for the queue to become non-empty when retrieving an element, and wait for space to become available in the queue when storing an element. When configured with a fixed size (example ArrayBlockingQueue, it can be used as a memory sprawl control mechanisms, providing memory-safe separation between threads.