Java Icon

Java

Java is an object-oriented programming language used mainly for desktop and mobile applications.
1 Story
All Topics

Yegor Bugayenko www.yegor256.com

How I test my Java classes for thread-safety

Yegor Bugayenko: Thread-safety is an important quality of classes in languages/platforms like Java, where we frequently share objects between threads. The issues caused by lack of thread-safety are very difficult to debug, since they are sporadic and almost impossible to reproduce on purpose. How do you test your objects to make sure they are thread-safe? Here is how I'm doing it. Great details on a particularly difficult aspect of testing. ✨

read more...
0:00 / 0:00