How I Test My Java Classes for Thread-Safety

I touched on this problem in one of my recent webinars, now it's time to explain it in writing. 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.

[image error]Scent of a Woman (1992) b...
 •  0 comments  •  flag
Share on Twitter
Published on March 26, 2018 17:00
No comments have been added yet.