Java 8 Concurrency API improvements

Table of Contents

Improvements with Java 8

A lot of improvements were added to the concurrency features with Java 8.

  1. Classes and interfaces have been added to the java.util.concurrent package.
  2. Methods have been added to the java.util.concurrent.ConcurrentHashMap class to support aggregate operations based on the newly added streams facility and lambda expressions.
  3. Classes have been added to the java.util.concurrent.atomic package to support scalable updatable variables.
  4. Methods have been added to the java.util.concurrent.ForkJoinPool class to support a common pool.
  5. The java.util.concurrent.locks.StampedLock class has been added to provide a capability-based lock with three modes for controlling read/write access.

Tags

  1. What is a CompletableFuture?

Links to this note