Domanda di colloquio di evosoft

How would you synchronize two given threads?