Concurrent Util

Recent Tutorial

Java Concurrent Collections

java.util.concurrent package is to enable developers write better concurrent Java applications. This concurrent package includes some additions to the Java Collections Framework. These are called as Java Concurrent Collections. I have been writing a tutorial series about those classes in the past few weeks. This article is a summary and index of those Java concurrent […]
Published to Java Tutorial on 18/01/2015.

Java ConcurrentSkipListMap

This Java tutorial is to learn about the concurrent collection class ConcurrentSkipListMap. This is an implementation of ConcurrentNavigableMap interface. ConcurrentNavigableMap Interface This interface is a type of SortedMap that provides navigation methods that returns the closest match for given search targets. It has methods like lowerEntry, floorEntry, ceilingEntry, higherEntry which return Map.Entry instances based on […]
Published to Java Tutorial on 30/11/2014.

Java ConcurrentHashMap

This Java tutorial is part of our Java concurrent collections tutorial series. In this tutorial we will see about Java ConcurrentHashMap. ConcurrentHashMap is a hash table which supports complete concurrency for retrievals and updates. ConcurrentHashMap follows the specifications of a Hashtable. ConcurrentHashMap does not lock the entire collection for synchronization. ConcurrentHashMap is a suited candidate […]
Published to Java Tutorial on 30/11/2014.

Java LinkedBlockingDeque

This Java tutorial is to learn about the concurrent collection LinkedBlockingDeque. It is an optionally bounded blocking double ended queue. LinkedBlockingDeque is an implementation of the interface Java BlockingDeque. LinkedBlockingDeque provides a constructor which can be used to specify the capacity and limit the number of elements that can be added to the queue. LinkedBlockingDeque […]
Published to Java Tutorial on 30/11/2014.

Java BlockingDeque

BlockingDeque is an interface that extends Deque and BlockingQueue. It combines both the operations of Deque and BlockingQueue. A Deque is a double ended queue. It is a linear collection of elements wherein elements can be inserted and removed from both the ends. BlockingQueue is a queue that supports blocking operations for that will wait […]
Published to Java Tutorial on 30/11/2014.

Java LinkedTransferQueue

This Java tutorial is to learn about the LinkedTransferQueue. It is an implementation of TransferQueue and available in the Java SE API. This class is part of the Java collections framework. LinkedTransferQueue is an unbounded TransferQueue based on linked nodes. A producer will wait for the consumer to consume the elements in this queue. LinkedTransferQueue […]
Published to Java Tutorial on 09/11/2014.

Java TransferQueue

This Java tutorial is to learn about TransferQueue which is concurrent collection. TransferQueue is an interface and a type of BlockingQueue. TransferQueue extends from BlockingQueue interface to add behavior to it. In a TransferQueue producers may wait for consumers to receive elements. TransferQueue was added in Java SE 7. This is marginally similar to the […]
Published to Java Tutorial on 09/11/2014.

Java SynchronousQueue

This Java tutorial is to learn about the concurrent collection SynchronousQueue. It is an implementation of BlockingQueue. Among all Java concurrent collections, SynchronousQueue is different. Capacity of a synchrounous queue is always zero. It is because in SynchronousQueue an insert will wait for a remove operation by another thread and vice versa. put() call to […]
Published to Java Tutorial on 05/10/2014.

Java PriorityBlockingQueue

Java PriorityBlockingQueue is a concurrent collection and an implementation of BlockingQueue. PriorityBlockingQueue is an unbounded collection. Ordering of elements in the PriorityBlockingQueue is done same as in PriorityQueue. We should see PriorityBlockingQueue as a PriorityQueue with added operations for blocking retrieval. All the rules of PriorityQueue applies here like elements are ordered based on their […]
Published to Java Tutorial on 05/10/2014.

Java LinkedBlockingQueue

This Java tutorial is to learn about the collection LinkedBlockingQueue which is an implementation of Java BlockingQueue. LinkedBlockingQueue order elements first-in-first-out (FIFO). With respect to bounds of the LinkedBlockingQueue, it stands in between ArrayBlockingQueue and DelayQueue. ArrayBlockingQueue is a bounded collection. DelayQueue is an unbounded collection. LinkedBlocingQueue is an optionally bounded collection. LinkeBlockingQueue has an […]
Published to Java Tutorial on 05/10/2014.