A
Al Koch
Thanks Dale,
Here's a related reference -
http://www.javaworld.com/jw-02-2001/jw-0209-double.html
Al,
(e-mail address removed)
Dale King said:Eric Sosman wrote:
There has been discussion in this group and on the web in reference to
"double-checked locking" that a VM can set a variable to reference the
newly created object before the objects constructor has actually
completed, which would allow another thread to access an object before
its construction is complete.
Things get really complicated when you start talking about mulitple
processors and the memory model.
See for example, the following:
http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
Here's a related reference -
http://www.javaworld.com/jw-02-2001/jw-0209-double.html
Al,
(e-mail address removed)