Adobe Interview Question

How do semaphore work in real time