Example for a correctly synchronized program with data races in Java memory model
What's "sequentially consistent executions are free of data races"?
How to correctly use synchronized? java synchronized method - how does it work How to Avoid Data Races - Two Examples Where do i have to use synchronized? implementing remove on a ConcurrentMultimap without races Understanding starting a thread and possible data races involved Java Synchronized method...not synchronized Should this be a synchronized method? Java - Synchronized Java synchronized method Data Races in an AtomicIntegerArray How java synchronized work When I call a method not synchronized from a synchronized what appen? Am I using the synchronized block correctly? Can this "synchronized" work? How does a synchronized method work in Java? When to use synchronized in Java Java Synchronized Object? Synchronized doesn't work Java synchronized method is not synchronized Data Races on individual elements of an AtomicReference synchronized object Java Synchronized list How does Synchronized work? How does synchronized work in Java Should threadMessage in the SimpleThreads example be synchronized? Why is this not synchronized correctly? When to use synchronized Why not synchronized?