Pregunta de entrevista de Truecaller

Difference between atomic and thread-safe variables