In the following exercises, you will use data-parallel collections in several concrete parallel collection use cases, and implement custom parallel collections. In all examples, a special emphasis is put on measuring the performance gains from parallelization. Even when it is not asked for explicitly, you should ensure that your program is not only correct but also faster than a corresponding sequential program:
Measure the average running time for allocating a simple object on the JVM.
Count the occurrences of the whitespace character in a randomly generated string, where the probability of a whitespace at each position is determined by a
pparameter. Use the parallel
foreachmethod. Plot a graph that correlates the running time of this operation with the
Implement a program that renders the Mandelbrot set in parallel.
Implement a program that simulates a cellular automaton in parallel.
Implement a parallel Barnes-Hut N-body simulation algorithm.
Explain how you can improve...