![]() It is oriented to multi-threaded execution, doesn’t allow zero elements and capacity could be limited. So it inherits the properties of the Deque interface. BlockingDeque such as BlockingQueue is a blocking queue, but bidirectional. Implementing classes of BlockingQueue interface: ArrayBlockingQueue, DelayQueue, LinkedBlockingDeque, LinkedBlockingQueue, LinkedTransferQueue, PriorityBlockingQueue, SynchronousQueue.īlockingDeque is a subinterface for BlockingQueue. Standard Blocking Queues include LinkedBlockingQueue, SynchronousQueue, and ArrayBlockingQueue. Sure, the concept of "full queue" implies that the queue has a limited size, which is usually specified in the constructor. Similarly, when a thread tries to put elements into a full queue, it waits until some other thread takes the elements out of the queue to get free space for the elements. ![]() When a thread tries to get items from an empty queue, it waits until some other thread puts the items into the queue.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |