When the application starts, I create an instance of the class in the background thread, and then assign it to a variable. I later access this variable from my main thread. This variable is assigned only once.
My understanding is that I do not need to use the volatile keyword here because the link cannot be cached until it is first available in the user interface thread. Am I right in my thinking, or am I missing something?
source share