WD interview question

What does semaphore act?