This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.

# ParallelTry

 ParallelTry[f, {arg1, arg2, ...}] evaluates f[argi] in parallel, returning the first result received. ParallelTry[f, {arg1, arg2, ...}, k]returns a list of the first k results.
• ParallelTry automatically distributes computations among different available kernels and processors.
• Any evaluations still underway after k results have been received are aborted.
• If the result from evaluating one of the f[argi] is \$Failed, then it is ignored.
• ParallelTry[f, {arg1, arg2, ...}] allocates evaluations of the f[argi] to different kernels and processors, starting with arg1.
• If there are more argi than kernels, then some of the argi will not be tried unless earlier ones return \$Failed.
Find the factorization of a number that is easy to factorize:
Nondeterministically find a prime in a given range:
Find the factorization of a number that is easy to factorize:
 Out[1]=

Nondeterministically find a prime in a given range:
 Out[1]=
 Scope   (2)
Return the first two successful results:
If no successful results are found, ParallelTry returns \$Failed:
 Applications   (2)
Find a random prime in parallel:
Try different methods for minimization and return the first one that succeeds:
Compare methods of minimization:
Return the first method that succeeds:
New in 7