This repository contains a notebook illustrating how one may parallelize a for loop in Julia using:
- native Julia functions
- SharedArrays: on a single machine, with shared memory
- DistibutedArrays: can be used on a cluster
Using a parallel for loop is particularly useful when solving dynamic programming problems with independent dimensions.
https://github.com/JulienPascal/ExamplesDistributedArrays/blob/master/ExampleSharedArrays.ipynb