Memory Consistency Errors vs Thread interference

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.

15
задан msk 3 September 2010 в 00:42
поделиться