Pregunta de entrevista de evosoft

How would you synchronize two given threads?