Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #2723
| 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 | Re: AtomicReferenceArray writes and visibility |
| Date | 2 Apr 2011 06:28:28 GMT |
| Organization | Private site at Eddersheim, Germany |
| Lines | 26 |
| Distribution | world |
| Message-ID | <in6fmc$diq$1@Gaia.teknon.de> (permalink) |
| References | <in14ae$qap$1@Gaia.teknon.de> <BLudnddkgoU5rwnQnZ2dnUVZ_vydnZ2d@posted.palinacquisition> |
| X-Trace | individual.net cEyAsRcHZKb15ou4s/XB7QcfYu1XmRag+RTut0F7sh16JqoOjF |
| Cancel-Lock | sha1:YZbGKv4EEzq4gZU2EekApq2wNBI= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2723 |
Show key headers only | View raw
Peter Duniho wrote: > On 3/30/11 10:43 PM, Volker Borchert wrote: > > 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? > > Essentially, but not literally. You need to qualify your statement to > specify that the action that occurs before the write (the call to set()) > has to be in the same thread as the write, and the action that occurs > after the read (the call to get()) has to be in the same thread as the read. That was implied, I forgot to state it explicitly. Thanks for the clarification. -- "I'm a doctor, not a mechanic." Dr Leonard McCoy <mccoy@ncc1701.starfleet.fed> "I'm a mechanic, not a doctor." Volker Borchert <v_borchert@despammed.com>
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
AtomicReferenceArray writes and visibility v_borchert@despammed.com (Volker Borchert) - 2011-03-31 05:43 +0000
Re: AtomicReferenceArray writes and visibility Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-03-31 00:52 -0700
Re: AtomicReferenceArray writes and visibility v_borchert@despammed.com (Volker Borchert) - 2011-04-02 06:28 +0000
Re: AtomicReferenceArray writes and visibility Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2011-03-31 20:55 -0700
Re: AtomicReferenceArray writes and visibility markspace <-@.> - 2011-03-31 21:22 -0700
Re: AtomicReferenceArray writes and visibility Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-03-31 21:54 -0700
Re: AtomicReferenceArray writes and visibility markspace <-@.> - 2011-03-31 21:58 -0700
Re: AtomicReferenceArray writes and visibility Patricia Shanahan <pats@acm.org> - 2011-03-31 22:24 -0700
Re: AtomicReferenceArray writes and visibility markspace <-@.> - 2011-03-31 22:55 -0700
Re: AtomicReferenceArray writes and visibility Lew <lew@lewscanon.com> - 2011-04-01 11:40 -0700
csiph-web