Pregunta de entrevista de IBM

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

Respuesta de la entrevista

Anónimo

27 mar 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