Pregunta de entrevista de DataArt

What are the ways to synchronize access from multiple threads.