[concurrency-interest] array of volatiles ?

Tim Peierls tim at peierls.net
Mon Feb 5 11:26:52 EST 2007


You can't, but consider using
java.util.conccurent.atomic.AtomicIntegerArrayinstead. See Java
Concurrency in Practice section 15.3, page 325.

--tim

On 2/5/07, Yechiel <yechielf at gigaspaces.com> wrote:
>
>  How can I declare an array of volatiles ?
> i.e   volatile int[] myArray declares the ref to the whole array as
> volatile. How can I make each int volatile  ?
>
> Regrds,
> Yechiel
>
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at altair.cs.oswego.edu
> http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20070205/aa2174c4/attachment.html 


More information about the Concurrency-interest mailing list