Pergunta de entrevista da empresa DataArt

What are the ways to synchronize access from multiple threads.