Imagine a bacon-wrapped Ferrari. Still not better than our free technical reports.
See all our reports

vJUG session with Stuart Marks: “Java 8 Parallel Streams Workshop”

Stuart Marks is an Oracle Engineer working on the core libraries part of Java. In this vJUG session, Stuart walks us through parallel streams in Java 8 in a very hands-on way. After a few slides, Stuart jumps straight into NetBeans for an expert workshop of how you can use streams in your day-to-day code.

Stuart describes and works through many different examples to show how you can add multiple intermediary operations on streams before finally terminating them, including filters, maps, sorting using multiple comparators and peek, all using Java 8’s new Lambdas feature which everyone’s talking about. Stuart moves on to discuss how you can run this logic in parallel, across multiple threads, and the implications of this including data being overwritten if you have bad implementations.

The code and slides which Stuart presented are available on GitHub.

Check out a related post that I think you might like about Java 8 foreach, filters, maps and more.