Hi,

I think I found the source of this bug. There is a Linux specific detail in the 
pthreads API:


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

This can be found in the man page of pthread_create 
(http://man7.org/linux/man-pages/man3/pthread_create.3.html).

So if OpenThread uses pthreads, it will have the same behaviour. The newly 
created thread will always inherit the CPU affinity from the parent thread. A 
possible solution for this problem could be to explicitly set the CPU affinity 
mask in Thread::start().

Thank you!

Cheers,
Marcel

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57845#57845





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to