Paul Clapham wrote:No. But that's because declaring a variable as volatile doesn't make it thread-safe.
Jack Nam wrote:Assume that only one thread do the write operation, other just read. Would it be safe from memory visibility point of view?