Make Your CPU Cores Sweat with Parallel Streams

2,663 views · Published 4 October 2017 · 45:54 · Indexed 1 November 2026

Channel: Java · 2017 · Science & Technology

Watch on YouTube

Lukasz Pater, Developer, Programmer, CERN

Prior to Java 8, you always had to use threads to leverage multicore architectures, which did the job but could often be somewhat difficult. The Java 8 Streams API changed this, by providing a new and simpler way of thinking about parallelism: parallel streams. Even though parallel streams can help you achieve parallelism almost for free, you still have to follow some basic but important rules that you will learn in this session, together with some best practices. Discover what happens under the hood when you invoke that magic parallelStream method, understand how to avoid the main traps and performance hiccups, learn what a Spliterator is, and much more!

More from this channel