Overview
Explore parallel streams, CompletableFuture, and concurrency techniques in Java 8 and 9 through this 48-minute conference talk. Dive into the various options for optimizing program speed, including parallel streams, CompletableFuture class, ExecutorService, and other java.util.concurrent classes. Learn about the trade-offs involved in choosing different parallelism and concurrency approaches. Discover when parallel processing is beneficial and how to implement it effectively. Examine concepts such as partitioning, fork-join pools, and asynchronous programming. Gain insights into modern Java recipes, factory methods, and the principles of "Simple Made Easy." Follow along with demonstrations and examples to understand the practical applications of these concurrent programming techniques in Java.
Syllabus
Introduction
About Ken
Modern Java Recipes
Safari Books
Definitions
Simple Made Easy
Brian Gets
Factory Methods
Parallel and Sequential
Part of a Pipeline
Sequential Parallel Tests
When is Parallel Worth Doing
Partitioning
Demonstration
Fork Join Pool
Change Threads
Future
Busy Waiting
CompletableFuture
Methods
Combined Methods
Overloads
Async
Overload
Supply Async
Get and Join
Wait quiescence
Example
Taught by
Java