From Marcel Pursche, "The problem is that when OpenThreads is build with the Linux pthreads implementation all threads inherit the processor affinity from their parent thread. This behavior is also described in the pthreads man page (http://man7.org/linux/man-pages/man3/pthread_create.3.html):
From Marcel Pursche, "The problem is that when OpenThreads is build with the Linux pthreads implementation all threads inherit the processor affinity from their parent thread.
This behavior is also described in the pthreads man page (http://man7.org/linux/man-pages/man3/pthread_create.3.html):

>
> Linux-specific details
> The new thread inherits copies of the calling thread's capability
> sets (see capabilities(7)) and CPU affinity mask (see
> sched_setaffinity(2)).
>

To prevent this behaviour I wrote a patch that explicitly sets the affinity mask to all cores of the system, if no specific affinity was defined with PThread::setProcessorAffinity(unsigned int) .

Thank you!
"


ntoand/osg,artoolkit/osg,XiaoCC/osg,ntoand/osg,artoolkit/osg,koshman86/osg,artoolkit/osg,omega-hub/osg,ntoand/osg,XiaoCC/osg,omega-hub/osg,ghub/osg,ghub/osg,ntoand/osg,omega-hub/osg,ghub/osg,XiaoCC/osg,XiaoCC/osg,koshman86/osg,XiaoCC/osg,ghub/osg,omega-hub/osg,koshman86/osg,artoolkit/osg,koshman86/osg