EPAM Systems interview question

Semaphores, Mutex and other multithreading stuff