What does ‘synchronized’ mean?
The synchronized keyword is all about different threads reading and writing to the same variables, objects and resources. This is not a trivial topic in Java, but here is a quote from Sun: synchronized methods enable a simple strategy for preventing thread interference and memory consistency errors: if an object is visible to more than … Read more