Intel Corporation interview question

Synchronization (Semaphores and Monitors):