Pregunta de entrevista de Ericsson

How did you make your code Thread Safe?