Mistplay interview question

Name any software design patterns, what are semaphores