IBM Interview Question

if a variable is shared by multiple thread, how do you ensure thread safety.

Interview Answer

Anonymous

Mar 27, 2016

classes like AtomicInteger would be helpful. they are satisfied with my answer, then they go deeper, I said using a independent cache like Redis is helpful