title: Memory Consistency Errors vs Thread interference
body: <p>What is the difference between memory consistency errors and thread interference?
  How does the use of synchronization to avoid them differ or not? Please illustrate with an example. I couldn't get this from the sun Java tutorial. Any recommendation of reading material(s) to understand this purely in context of java would be helpful.</p>