1.

What Is Blockingqueue?

Answer»

A Queue that additionally 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 methods come in four FORMS: one throws an exception, the second RETURNS a special value (either null or false, depending on the operation), the third blocks the current thread indefinitely until the operation can succeed, and the fourth blocks for only a given maximum time limit before giving up.

A Queue that additionally 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 methods come in four forms: one throws an exception, the second returns a special value (either null or false, depending on the operation), the third blocks the current thread indefinitely until the operation can succeed, and the fourth blocks for only a given maximum time limit before giving up.



Discussion

No Comment Found