It is a user-based SIer. The other day, I suspected that personal information was shared between users in the system I was maintaining, and I summarized the sites I referred to when investigating whether it was thread safe.
No problem occurs even if multiple threads execute processing in parallel. For example, when Mr. A and Mr. B execute processing at the same time, if both can access the shared data, a problem will occur, so it is necessary to control so that only one of them can access it.
-About Java ThreadLocal and Threadsafe https://qiita.com/yoshi-naoyuki/items/507c5c3ea6027033f4bb ・ Don't forget to make it thread safe http://tech.nikkeibp.co.jp/it/article/COLUMN/20070820/279950/
Recommended Posts