This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ParallelNeeds

ParallelNeeds
evaluates Needs on all available parallel kernels.
  • ParallelNeeds in effect "registers" Needs specifications so that they are automatically performed in every new parallel kernel that may be launched.
Load package for master kernel:
Load package for parallel kernels:
Load package for master kernel:
In[1]:=
Click for copyable input
Load package for parallel kernels:
In[2]:=
Click for copyable input
ParallelNeeds uses ParallelEvaluate to run Needs on all parallel kernels:
An explicit ParallelEvaluate does the same:
Only the effect of ParallelNeeds is remembered for new kernels:
Use ParallelNeeds to set up a package on all parallel kernels:
Use DistributeDefinitions to set up your own definitions:
It is generally necessary to load any package also on the master kernel:
Symbols can now be used on the master and parallel kernels:
New in 7