Access to a specific subkernel

 Access to a specific subkernel

Say I want to distribute a task in the following way on the available subkernels:

ParallelSubmit[
 foo[x_] = x;
 Print[foo[3]];
];

ParallelSubmit[
 foo[x_] = x^2;
 Print[foo[3]];
];

WaitAll[%]

Is there a way to re-define foo[x] explicitly for a kernel with a specific ID?

Let’s block ads! (Why?)

Recent Questions – Mathematica Stack Exchange