Pergunta de entrevista da empresa EPAM Systems

Write a singleton, now how can you assure concurrent safety?