Intel Corporation Interview Question

Synchronization (Semaphores and Monitors):