Parallel-Ready Java Code: Managing Mutation in Concurrent Systems - PhillyETE 2015
Explore parallel-ready Java code and managing mutation in imperative languages in this 54-minute conference talk from PhillyETE 2015. Dive into the Collectors API introduced in Java 8, which enables concurrent access to non-threadsafe mutable collections, offering developers "free" parallelism. Learn how to adapt your thinking and follow simple rules to make your code parallel-ready. Discover the Lambda FAQ, Stream API concepts, and the pipes and filters pattern in Java. Examine sequential streams, including sources, intermediate operations like filter(), map(), and flatMap(), and sinks. Understand parallelism, automated resource management, and retooling techniques. Explore examples of summation, reduction of primitives and mutable objects, and predefined Collectors like toMap() and groupingBy(). Learn about concurrent collections, writing custom Collectors, and visualizing stream operations. Gain insights into what makes code parallel-ready and how to use streams effectively by following JavaDoc rules for java.util.stream. Read more