Concurrency

Mathematica provides not only automatic parallelization capabilities, but also a full built-in symbolic language for specifying concurrent computation.

ReferenceReference

Concurrent Evaluation

ParallelSubmit submit expressions to be evaluated concurrently

WaitAll wait for all concurrent evaluations to finish

WaitNext wait for the next of a list of concurrent evaluations to finish

EvaluationObject symbolic representation of an expression submitted for evaluation

Communication & Synchronization »

SetSharedVariable specify symbols with values to synchronize across subkernels

SetSharedFunction specify functions whose evaluations are to be synchronized

UnsetShared stop variables or functions being shared

CriticalSection synchronize concurrent access using lock variables

Configuration Information »

$KernelCount number of running kernels, degree of parallelism

$KernelID a unique positive integer value assigned to each parallel kernel

New to Mathematica? Find your learning path »
Have a question? Ask support »