Wednesday, 28 August 2013

Does GO support volatile / non-volatile variables?

Does GO support volatile / non-volatile variables?

I'm new to the language so bear with me.
I am curious how GO handles data storage available to threads, in the
sense that non-local variables can also be non-volatile, like in Java for
instance.
GO has the concept of channel, which, by it's nature -- inter thread
communication, means it bypasses processor cache, and reads/writes to heap
directly.
Also, have not found any reference to volatile in the go lang documentation.

No comments:

Post a Comment