InterviewSolution
| 1. |
What Is Blockingqueue In Java Concurrency? |
|
Answer» BlockingQueueinterface is added in Java 5 with in the java.util.concurrent package. BlockingQueue is a queue that can block the operations. Which means BlockingQueue supports 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. BlockingQueue provides following blocking methods -
BlockingQueueinterface is added in Java 5 with in the java.util.concurrent package. BlockingQueue is a queue that can block the operations. Which means BlockingQueue supports 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. BlockingQueue provides following blocking methods - |
|