[ITK] [ITK-users] Multi-threader and thread pool

Matt McCormick matt.mccormick at kitware.com
Thu Feb 4 15:04:11 EST 2016


Hi Olivier,

The itk::ThreadPool is an experimental thread-pool feature.  It is
considered experimental, and it maybe majorly modified in its API or
removed in the future. Our preliminary experiences is that ITK runs
slower when it is enabled.

To enable it, call

  itk::MultiThreader::SetGlobalDefaultUseThreadPool( true );

In the future, we will be moving towards other thread pool backends by
adopting interfaces similar to vtkSMPTools and VTK-m.

Thanks,
Matt

On Thu, Feb 4, 2016 at 2:07 PM, Olivier Commowick
<olivier.commowick at inria.fr> wrote:
> Hi everyone,
>
> I have recently discovered the existence of a thread pool class in ITK
> (http://itk.org/Doxygen/html/classitk_1_1ThreadPool.html), closely linked to
> the multi threader. From the doxygen, I am not really able to understand how
> it can be used and I do not see any example for it.
>
> I have been looking for some time for a multi-threader, working on all OSes,
> that can have more jobs in queue than the number of threads and execute them
> when threads gets free, and this would seem like a good start. So I was
> wondering how this thread pool actually behaves when used by the
> multi-threader, what its goal is in ITK and all this sort of things. If
> anyone had some idea about this or may be an example on how it could be
> used, that would be great.
>
> Thanks
> Olivier
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list