•  

New Concurrency Utilities in Java 8

A session at GOTO Berlin 2014

Friday 7th November, 2014

2:30pm to 3:20pm (CET)

There are a couple of new concurrency utilities in Java 8. The most relevant one is CompletableFuture. The regular Future is used for retrieval of a result that is produced by a task (typically a task that is executed in a thread pool). For this purpose the regular Future supports waiting for the result and retrieving it once it has been produced. After retrieval the result is processed synchronously. The new CompletableFuture, in contrast, supports asynchronous result processing: we need not wait until the result of a task has been produced, instead we can upfront specify an action (the result processing) that will later be executed automatically when the result appears. In addition, Java 8 comes with a couple of minor extensions related to concurrency: StampedLock (a ReadWriteLock with optimistic Read), LongAdder / LongAccumulator (as an alternative to AtomicLong), new operations in ConcurrentHashMap (e.g.. computeIfAbsent, forEach, reduce, search), the Common Pool (a singleton ForkJoinPool) and the @Contended annotation (to prevent False Sharing).

About the speaker

This person is speaking at this event.
Angelika Langer

Angelika Langer Training/Consulting

Next session in Hall 1

3:50pm Frontend Choices by Alex Coles

1 attendee

  • Angelika Langer

Coverage of this session

Sign in to add slides, notes or videos to this session

Sign in to track this session

GOTO Berlin 2014

Germany Germany, Berlin

5th7th November 2014

Tell your friends!

When

Time 2:30pm3:20pm CET

Date Fri 7th November 2014

Where

Hall 1, Kosmos Berlin

Short URL

lanyrd.com/sdgzqp

View the schedule

Share

Books by speaker

  • Memory Leaks in Java (shortcuts) (German Edition)
  • Memory Leaks Tools (shortcuts) (German Edition)
  • Java 7 - Fork-Join-Framework und Phaser (German Edition)

See something wrong?

Report an issue with this session