The doMC package is a parallel backend for the foreach package. It provides a mechanism needed to execute foreach loops in parallel.

The doMC package is a parallel backend for the foreach package. It provides a mechanism needed to execute foreach loops in parallel. The foreach package must be used in conjunction with a package such as doMC in order to execute code in parallel. The user must register a parallel backend to use, otherwise foreach will execute tasks sequentially. The doMC package acts as an interface between foreach and the multicore package.

Resources: