[Top] [Contents] [Index] [ ? ]

Footnotes

(1)

In SMP systems the new thread could be started on another CPU before the effects of the initialization are seen by that CPU's memory cache. Not doing proper synchronization here leads to the same problems the double-checked locking idiom has. You might find that if you don't do proper synchronization, it still works in most configurations. Don't let this fool you. Someday it might lead to subtle bugs when someone tries it on a DEC Alpha or an SMP machine.



This document was generated by root on July, 15 2004 using texi2html