I'm not really experienced/qualified enough to judge the merits of this, but since
threading in OSG has been a critical issue, I thought I'd bring it to the attention of
others and see what they thought.
http://www.hpl.hp.com/techreports/2004/HPL-2004-209.html
Abstract: In many environments, multi-threaded code is written in a language that was
originally designed without thread support (e.g. C), to which a library of threading
primitives was subsequently added. There appears to be a general understanding that this
is not the right approach. We provide specific arguments that a pure library approach, in
which the compiler is designed independently of threading issues, cannot guarantee
correctness of the resulting code. We first review why the approach almost works, and then
examine some of the surprising behavior it may entail. We further illustrate that there
are very simple cases in which a pure library-based approach seems incapable of expressing
an efficient parallel algorithm. Our discussion takes place in the context of C with
Pthreads, since it is commonly used, reasonably well specified, and does not attempt to
ensure type-safety, which would entail even stronger constraints. The issues we raise are
not specific to that context.
--
Chris 'Xenon' Hanson aka Eric Hammil | http://www.3DNature.com/ eric at logrus
"I set the wheels in motion, turn up all the machines, activate the programs,
and run behind the scenes. I set the clouds in motion, turn up light and
sound,
activate the window, and watch the world go 'round." -Prime Mover, Rush.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/