Login  Register

Re: Arrays and thread safety

Posted by Albert Cardona on May 07, 2009; 8:40pm
URL: http://imagej.273.s1.nabble.com/Arrays-and-thread-safety-tp3692620p3692624.html

Thomas Boudier wrote:
> Hi Michael,
>
> I mean when each thread work on separate arrays, I split my images in
> 4 parts (when I have 4 cpus) with overlap and process each part with a
> thread and then recombine them.
>
> Thomas



I second that, makes big difference.
It's all about resource contention when accessing/modifying variables:
the best is to have none at all.

Albert

--
Albert Cardona
http://albert.rierol.net