As we all know, volatile guarantees visibility of shared variables in Java, but I didn\'t get the results I wanted in Scala. The result of the following example is always un