[vtk-developers] fix for vtkMultiThreader.cxx

Simon Warfield warfield at bwh.harvard.edu
Mon Jun 4 22:36:43 EDT 2001


 Line 348 vtkMultiThreader.cxx sets the scheduling scope for pthreads.
 
vtkMultiThreader.cxx line 348:
  pthread_attr_setscope(&attr, PTHREAD_SCOPE_PROCESS);

Under Solaris on a multi-cpu box this is appropriate if you don't want the 
threads to run simultaneously on different CPUs.  In order to achieve better
performance, the scheduling scope should be:

vtkMultiThreader.cxx line 348:
  pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM);

-- 
Simon Warfield, Ph.D. warfield at bwh.harvard.edu Phone:617-732-7090
http://www.spl.harvard.edu/~warfield           FAX:  617-582-6033
Thorn 329, Brigham and Women's Hospital, Harvard Medical School
Department of Radiology, 75 Francis St, Boston, MA, 02115




More information about the vtk-developers mailing list