February 2014
Beginner
1248 pages
62h 25m
English
In Chapter 17, you learned about Java SE 8 lambdas and streams. We mentioned that streams are easy to parallelize, enabling programs to benefit from enhanced performance on multi-core systems. Using the timing capabilities introduced in Section 23.12, Fig. 23.29 demonstrates both sequential and parallel stream operations on a 10,000,000element array of random long values (created at line 17) to compare the performance.
Read now
Unlock full access