synchronized Queue in java

by rajesh 2009-12-30 16:37:05

Concurrent Queue Implementations
The java.util.concurrent package contains a set of synchronized Queue interfaces and classes. BlockingQueue extends Queue with operations that wait for the queue to become nonempty when retrieving an element and for space to become available in the queue when storing an element. This interface is implemented by the following classes:

* LinkedBlockingQueue â an optionally bounded FIFO blocking queue backed by linked nodes
* ArrayBlockingQueue â a bounded FIFO blocking queue backed by an array
* PriorityBlockingQueue â an unbounded blocking priority queue backed by a heap
* DelayQueue â a time-based scheduling queue backed by a heap
* SynchronousQueue â a simple rendezvous mechanism that uses the BlockingQueue interface

Src - http://java.sun.com/docs/books/tutorial/collections/implementations/queue.html

Tagged in:

1448
like
0
dislike
0
mail
flag

You must LOGIN to add comments