Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
JavaScript
12.2K+ articles
School Learning
11.5K+ articles
Java
10.8K+ articles
Java-Functions
4.2K+ articles
Java-Collections
1.1K+ articles
Java-BlockingQueue
11 posts
Recent Articles
Popular Articles
Producer Consumer Solution using BlockingQueue in Java Thread
Last Updated: 28 January 2021
The Producer-Consumer problem is a synchronization issue that arises when one or more threads generate data, placing it on a buffer, and simultaneously, one or more thread...
read more
Java
Technical Scripter
Java Programs
Picked
Java-BlockingQueue
Technical Scripter 2020
BlockingQueue remainingCapacity() method in Java with examples
Last Updated: 15 October 2019
The remainingCapacity() method of BlockingQueue returns the number of more elements that can be added to BlockingQueue without blocking. The Capacity returned arises in th...
read more
Java
Java-Collections
Java - util package
Java-Functions
Picked
Java-BlockingQueue
BlockingQueue remove() method in Java with examples
Last Updated: 14 October 2019
The remove(Object obj) method of BlockingQueue removes only one instance of the given Object, passed as parameter, from this BlockingQueue if it is present. It removes an ...
read more
Java
Java-Collections
Java-Functions
Java-BlockingQueue
BlockingQueue take() method in Java with examples
Last Updated: 23 August 2021
The take() method of BlockingQueue interface is used to retrieve and remove the head of this queue. If the queue is empty then it will wait until an element becomes availa...
read more
Java
Java-Collections
Java-Functions
Java-BlockingQueue
BlockingQueue drainTo() method in Java with examples
Last Updated: 01 November 2019
The drainTo(Collection col) method of BlockingQueue removes all available elements from this LinkedBlocking Queue and adds them to the given collection passed as a paramet...
read more
Java
Java-Collections
Java-Functions
Java-BlockingQueue
BlockingQueue offer() method in Java with examples
Last Updated: 04 July 2021
There are two types of offer() method for BlockingQueue interface:Note: The offer() method of BlockingQueue has been inherited from the Queue class in Java.offer(E e, long...
read more
Java
Java-Collections
Java-Functions
Java-BlockingQueue
BlockingQueue put() method in Java with examples
Last Updated: 13 September 2021
The put(E e) method of BlockingQueue interface inserts element passed as parameter to method at the tail of this BlockingQueue, if queue is not full. If the queue is full,...
read more
Java
Java-Collections
Java-Functions
Java-BlockingQueue
BlockingQueue poll() method in Java with examples
Last Updated: 14 October 2019
The poll(long timeout, TimeUnit unit) method of BlockingQueue interface returns the head of BlockingQueue by removing that element from the queue. It can be said that this...
read more
Java
Java-Collections
Java-Functions
Java-BlockingQueue
BlockingQueue contains() method in Java with examples
Last Updated: 14 October 2019
The contains(Object o) method of BlockingQueue interface checks if the passed element in the parameter exists in the container or not. It returns true if the element exist...
read more
Java
Java-Collections
Java-Functions
Java-BlockingQueue
BlockingQueue add() in Java with examples
Last Updated: 19 February 2021
The add(E e) method of BlockingQueue interface inserts the element passed in the parameter to the end of the Queue is there is space. If the BlockingQueue os capacity rest...
read more
Java
Java-Collections
Java-Functions
Java-BlockingQueue
BlockingQueue Interface in Java
Last Updated: 26 November 2024
The BlockingQueue Interface in Java is a part of the java.util.concurrent package and was introduced in Java 1.5. It is a specialized Queue implementation designed to hand...
read more
Java
Technical Scripter
Java-Collections
Technical Scripter 2018
Java-BlockingQueue
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !