Too Long; Didn't Read
In a single-threaded environment, any writes made to an object take effect immediately, ensuring that subsequent reads will reflect the updated state of the variable. However these same guarantees do not extend to a multi- threaded system. When the main thread writes to shared objects, these updates might not get visible to reader thread immediately. Other threads may see updated state for some variables while a totally obsolete value for other variables is totally obsolete. In this article, we explore this exact weirdness with object visibility.
RELATED STORIES
L O A D I N G
. . . comments & more!