[concurrency-interest] AtomicReference weakCompareAndSet "Mayfailspuriously"?

Giuliano Mega giuliano.mega at gmail.com
Sun May 28 23:55:31 EDT 2006


Many thanks David. You just answered my poorly-formulated question as well. :-)

Regards,

On 5/29/06, Bob Lee <crazybob at crazybob.org> wrote:
> Oops. David answered my question. ;)
>
> Bob
>
> On 5/28/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