Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Parallel-Ready Java Code: Managing Mutation in Concurrent Systems - PhillyETE 2015

ChariotSolutions via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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.

Syllabus

Intro
Maurice Naftalin
The Lambda FAQ
Ideas in the Stream API
Example Domain
Pipes and Filters in Java
Sources – sequential streams
Intermediate Operations
filter()
map()
peek()
flatMap Tolnt()
Sinks - sequential streams
Parallelism
Automated Resource Management
Retooling
Seriously, No More Accumulators??
Simple Example – Summation
Reduction of Primitives
Reduction of Mutable Objects?
Using the Predefined Collectors
toMap(Function keyMapper, Function valueMapper)
groupingBy(Function classifier) Uses the classifier function to make a classification mapping
groupingBy(Function)
Concurrent Collection
Writing a Collector
Sources - parallel streams
Visualizing Stream Operations
What Does Parallel-Ready Mean?
So, Is Your Code Parallel-Ready?
Using Streams Sanely Rules in the JavaDoc for java.util.stream
Conclusion

Taught by

ChariotSolutions

Reviews

Start your review of Parallel-Ready Java Code: Managing Mutation in Concurrent Systems - PhillyETE 2015

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.