Login  Register

Re: Can't Multithread on Third Party Plugins

Posted by Robert Dougherty on Mar 25, 2010; 11:45pm
URL: http://imagej.273.s1.nabble.com/Can-t-Multithread-on-Third-Party-Plugins-tp3688791p3688793.html

Ari,
You might look at my Local Thickness plugins. The approach is simple  
and effective, but has the drawback that all of the threads have the  
priority of the event dispatching thread, so there is no way to add an  
abort feature. If you need that, Swing Workers provide an option.
Bob

Robert P. Dougherty, Ph.D.
President, OptiNav, Inc.
4176 148 Ave. NE
Redmond, WA 98052
[hidden email]
(425)891-4883
www.optinav.com


On Mar 25, 2010, at 4:22 PM, Ari Zwick <[hidden email]> wrote:

> Hi,
>
> I am trying to get multithreading to work with a number of plugins in
> ImageJ, most important to me is Object Counter 3D.  When I try to  
> use this
> program on a 64 mb file that includes all objects of volume  
> 16-61200000
> voxels, I run into a processing time of about 6-8 hours.  I intend  
> to scale
> this up by a factor of 10, which means that unless I can use all 8  
> cores on
> my computer instead of 1, then I'll be waiting for days.  I've  
> noticed that
> I cannot get third party plugins to use more than 1 core, but the  
> native
> ImageJ functions do use all 8 cores.
>
> I have a Dell PowerEdge 1900 with dual xeon processors (1.6 ghz)  
> with 16 gb
> ddr2 ram.  I am using Redhat Linux Server Edition Version 5.4 64  
> bit.  I
> have the latest versions of ImageJ 64 bit and Java installed, except  
> Java3D,
> which I am in the process of getting.  I've been trolling around on  
> the
> forums and I get the impression that many plugins are not written to  
> utilize
> multiple cores, although I am not sure if this is true.  If Object  
> Counter
> 3d does not utilize multithreading, might anyone be able to suggest  
> how to
> modify the source code?  I am open to any and all solutions to my  
> problem,
> and I apologize if someone has already posted about this, but I  
> really did
> try to find a post about it before.
>
> Thanks in advance.