Java Interview Questions: - Show blocking Queues in Java?
The java.util.concurrent package contains a set of synchronized Queue interfaces and classes. Blocking Queue 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
See the following video on Front Controller in Java: -
Click to get Java Interview Questions
Regards,
Get more Java Interview Questions from author’s blog
http://
http://
Contributed by:
Shivprasad Koirala
We conduct training for Java/J2EE technologies like design patterns, J2EE, Struts, Hibernate, Spring, Rich Interface etc. and likes to write articles on the same in free time.
Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=624
Click here to go on website
|