Главная
Study mode:
on
1
Intro
2
What is CERN?
3
Manipulating collections before Java 8
4
Manipulating data with streams
5
Threads (JDK 1) Invocation of a thread results in a new path of execution Thread API is still great for simple asynchronous tasks and background processing
6
Executor Service (JDK 5) Java 5 introduced several new APIs that simplify design and development of multi-thread applications
7
Parallel Streams (JDK 8) The Stream library enables you to execute operations in parallel without much effort Under the hood it employs the forkjoin framework and the Spliterator
8
Fork/Join Framework (JDK7) Fork
9
F/J Framework and Parallel Streams
10
Custom F/J Pool for a Parallel Stream(s)?
11
Decomposing LinkedList and ArrayList Always take into account how well the stream source decomposes
12
Decomposing various stream sources
13
Decomposability and Auto(un)boxing
14
findAny () and unordered ()
15
sequential() and parallel()
16
Conclusions
Description:
Explore parallel streams in Java 8 to maximize CPU core utilization in this 46-minute conference talk by Lukasz Pater, a developer and programmer at CERN. Learn how the Streams API simplifies parallelism compared to traditional threading approaches. Discover the inner workings of the parallelStream method, understand key rules and best practices for effective implementation, and gain insights into avoiding common traps and performance issues. Delve into topics such as Spliterators, the Fork/Join Framework, and the decomposition of different stream sources. Compare parallel streams with earlier multithreading techniques and examine important considerations like decomposability and auto(un)boxing. Master methods like findAny(), unordered(), sequential(), and parallel() to optimize your parallel stream operations.

Make Your CPU Cores Sweat with Parallel Streams in Java 8

Java
Add to list
0:00 / 0:00