Didn't get: Why can't use double-check in Java; only because don't have release-acquire.
One minute response: There's two reasons; you gave the second one. First, the JVM architecture is so poorly specified that not even its designers know how the memory model works, so you can't figure out if the double-check idiom should work under the JVM. Second, under most sensible interpreations of the JVM spec, the memory consistency model is too weak to support the double-check idiom.
Didn't get: What should think over (take care) specially when we design a concurrent program?
One minute response: Just two things: Where's the potential interference? and Has the potential for interference been removed?
Didn't get: Do you have any code to look at written in .net? There could be many, but would like to see it.
One minute response: No, sorry, I don't. I'm sure if you trawl around on the net, you'll find plenty.
This page last modified on 16 July 2003.