Parallelism

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

Parallelism can be exploited when the code that is executed in parallel is safe, meaning the code does not access shared data. This code is referred to as pure function.

Streams API and Parallelism

The Streams API exposes map and reduce operations, which then can be internally parallelized over the elements of the stream.