[Insight-users] multi threading turn off switch

Bitter, Ingmar (NIH/CC/DRD) IBitter at cc.nih.gov
Mon Aug 30 09:40:34 EDT 2004


Hi all,

charl p. botha already replied earlier suggesting:

itk::MultiThreader::SetGlobalMaximumNumberOfThreads(1);

It worked fine. Thanks!

-Ingmar

PS: the proper way to make sure everyone on the mailing list get to see the
end of an email tread is to include CC: insight-users at itk.org on the reply?

-----Original Message-----
 
Hi Ingmar,


Yes, you just need to invoke

     filter->SetNumberOfThreads(1)

in the filter that you suspect to be
taking over your CPU.


   Regards,


     Luis


---------------------------------

> Hi,
> 
> It is very nice that itk automatically detects dual CPUs and uses both for
> the smoothing filters. Unfortunately, in Windows XP, that means that I can
> not even move the mouse smoothly during processing (and of course not
press
> a button, or type some code -- that would be true multitasking).  
> So is there a simple way to force itk to run single threaded? Or to leave
> one CPU unused?
> 
> -Ingmar



More information about the Insight-users mailing list