[Insight-users] multi threading turn off switch
Charl P. Botha
cpbotha at gmail.com
Fri Aug 27 10:54:54 EDT 2004
On Fri, 27 Aug 2004 10:47:34 -0400, Bitter, Ingmar (NIH/CC/DRD)
<ibitter at cc.nih.gov> wrote:
> 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?
itk::MultiThreader::SetGlobalMaximumNumberOfThreads(1);
... should do the trick.
--
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl
More information about the Insight-users
mailing list