Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: v_borchert@despammed.com (Volker Borchert) Newsgroups: comp.lang.java.programmer Subject: AtomicReferenceArray writes and visibility Date: 31 Mar 2011 05:43:42 GMT Organization: Private site at Eddersheim, Germany Lines: 23 Distribution: world Message-ID: X-Trace: individual.net TasJCB8etHnmHJtq8ovElg6j8KPaWlV5gIj91htOwC1q+574oD Cancel-Lock: sha1:8R2ejbysOoj4nWoI3OoMwVUimVE= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2634 Hello all, reading on the "new" memory model and AtomicReferenceArray, it seems that anything done before a .set() on an AtomicReferenceArray "happens-before" anything done after a .get() on the same AtomicReferenceArray. Two questions: 1. Am I right? 2. If so, does this hold true if the write does not actually change the value, in other words, if the write only "refreshes" the memory location? Thank you V.B. -- "I'm a doctor, not a mechanic." Dr Leonard McCoy "I'm a mechanic, not a doctor." Volker Borchert