i'm struggling with the following.

I use ParallelTable and it works transparently as it automatically distributes the needed definitions.

However, I run into problems if inside ParallelTable I call a package with Get["code/example.m"]. For example, the value of const which was set in the master kernel is not propagated in the evaluation of Get["code/example.m"].

-
Could you please provide a more complete example of what you are doing, and a short explanation of why you are doing it? –  Mr.Wizard Feb 21 '12 at 15:07
I have to sample an expensive function f[x] over a range of x. And in order to calculate f[x] I have to Get the *.m package. –  Valerio Feb 21 '12 at 15:35
It looks like the problem gets fixed if I put DistributeDefinitions["Global"] just before the ParallelTable'. –  Valerio Feb 21 '12 at 16:21