Java.util.concurrent Queues: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


=Overview=
=Overview=
=Blocking Queue=
<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, it can be used as a memory sprawl control mechanisms, providing memory-safe separation between threads.

Revision as of 03:34, 24 January 2016

Internal

Overview

Blocking Queue

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, it can be used as a memory sprawl control mechanisms, providing memory-safe separation between threads.