While testing vmlens on open source projects, I found the following 3 synchronization idioms. Each synchronization idiom is useful for a specific access pattern:
July 27, 2016
In the following you will see, how to test if your rest service is thread safe. Let us start with a simple example, a counter which contains a race condition.
July 18, 2016
In the following you see a simple example on how to test multithreaded java code with JUnit. Suppose we want to create a counter which can be used concurrently.
July 08, 2016
Here are the 5 possibilities to update a field in java in a thread safe way. But before we start, what do you have to make look at?
June 25, 2016
Detecting java race conditions is hard, detecting them during tests is impossible. Really?
March 11, 2016
A race condition happens when the outcome of the program depends on the sequence or timing of other uncontrollable events.
December 12, 2015
Using java.util.HashMap from many threads without any synchronization leads to race conditions.
November 15, 2015