This is a how-to guide for crashing the java virtual machine. It gives you an introduction to race conditions and shows you what errors can happen if your code contains such bugs. Full Article...
The reentrant lock is a replacement for the easier to use synchronized statement. In the cheat sheet, I have summarized the reentrant lock techniques. And in the blog post, I give a detailed description of those techniques. Full Article...
The vmlens executor service is a high throughput executor service. It achieves three times higher throughput than the standard JDK executor service. Full Article...
The new JDK™ 9 early access release contains a JDK enhancement proposal JEP 143, Improve Contended Locking, to improve the performance of contended monitors. So let us look at the performance improvements of contended monitors. Full Article...
If you update a field from different threads, you must make sure that between the read and the write from one thread the field is not updated by another thread. Full Article...
While testing vmlens, a tool to find data races in java applications, on open source projects, I found the following 5 tricks how to make classes thread safe. Full Article...
While testing vmlens on open source projects, I found the following 3 synchronization idioms. Each synchronization idiom is useful for a specific access pattern: Full Article...
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. Full Article...
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? Full Article...
Detecting java race conditions is hard, detecting them during tests is impossible. Really? Full Article...
© 2020 vmlens Legal Notice Privacy Policy