JavaMemoryModel: Threading issues in my connection pool

From: Jeremy Manson (jmanson@cs.umd.edu)
Date: Fri Sep 01 2000 - 11:45:02 EDT


> Does this free me of synchronization problems _in current JVMs_ ? In
> the future at least? I know my techniques are not good enough strictly
> in terms of the current JMM _spec_, but I'm hoping the _implementations_
> fare better.

Afraid not. Check out

http://www.cs.umd.edu/~pugh/java/memoryModel/archive/0326.html

for details. Most JVMs do not implement volatile variables in the way one
would like. Because of the spec revision, and generally getting the word
out, though, this should be a better in future VM implementations.

                                        Jeremy
-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel



This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:27 EDT