Volatile does not guarantee the freshness of value. It prevents some optimizations, but does not guarantee thread synchronization.
A double does not guarantee that it is updated atomically . Thus, updating / reading double arrays without synchronization will not be thread safe in all senses or without variability, since you can read partially written values.
source
share