MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ProgressIndicator in ParallelTable problem, redux


Nevermind, I have solved the problem with the following piece of code. It's ugly but it works, both in the example and in the real case:

LaunchKernels[3];
p = {0, 0, 0};
SetSharedVariable[p]
ParallelArray[(Print["Chain ", #, "/3 : ",ProgressIndicator[Dynamic[p[[#]]], {0, 10}]];Sum[Pause[.10 + 0.1 #]; p[[#]] = k; (k^2), {k, 0, 10, 1}]) &, 3]

BTW, I changed the Pause[] part a bit, so that each thread has a different progress. If anyone has a better idea, let me know.

Cheers 



  • Prev by Date: Re: Output display by slide
  • Next by Date: small string issue
  • Previous by thread: Re: ProgressIndicator in ParallelTable problem, redux
  • Next by thread: Output display by slide