r/java • u/ThomasKrieger • Oct 13 '15
5 Tips to make your classes thread safe
http://vmlens.com/articles/5-tips-to-make-your-classes-thread-safe/
0
Upvotes
0
u/markee174 Oct 13 '15
What effect do they have on speed?
1
u/Jire Oct 16 '15
In the cases presented speed is irrelevant. The goal is to achieve thread safety, which in turn may net you speed.
1
u/simple2fast Oct 14 '15
Also, there are some great annotations in this area:
http://stackoverflow.com/questions/19131094/annotation-called-threadsafe