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