Computing Factorials with Java Sequential and Parallel Streams
This video walks through implementations of various ways to compute factorials for BigIntegers to demonstrate the performance of alternative parallel and sequential algorithms, as well as the dangers of sharing unsynchronized mutable state between threads. It illustrates both Java sequential and parallel streams. All the code shown in this example is available in open-source form from https://github.com/douglascraigschmidt/LiveLessons/tree/master/Java8/ex16.
This video walks through implementations of various ways to compute factorials for BigIntegers to demonstrate the performance of alternative parallel and sequential algorithms, as well as the dangers of sharing unsynchronized mutable state between threads. It illustrates both Java sequential and parallel streams. All the code shown in this example is available in open-source form from https://github.com/douglascraigschmidt/LiveLessons/tree/master/Java8/ex16.