[concurrency-interest] array of volatiles ?

Taras Tielkes mailinglist.taras.tielkes at gmail.com
Mon Feb 5 12:07:27 EST 2007

Yechiel 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  ?
You can't. You could use the *Array classes from 
java.util.concurrent.atomic to get something similar.


More information about the Concurrency-interest mailing list