[concurrency-interest] AtomicReference weakCompareAndSet "Mayfailspuriously"?

Giuliano Mega giuliano.mega at gmail.com
Sun May 28 23:27:37 EDT 2006

That's what I was trying to ask. :-)

On 5/29/06, Bob Lee <crazybob at crazybob.org> wrote:
> On 5/28/06, Pete Soper <pete at soper.us> wrote:
> > The race is between the write of int[] and int[]{1} but it's enabled by
> > the lack of atomicity of the CAS.
> The CAS itself is atomic, right? The problem now is with the int[]
> which is exposed to two threads with no barrier. If we were doing a
> weak CAS of an int, this wouldn't be an issue, right?
> Bob
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at altair.cs.oswego.edu
> http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest

Giuliano Mega <giuliano at ime.usp.br>

More information about the Concurrency-interest mailing list