The semaphore was originally a flag signalling system used in the maritime world.
Based on this use, the term is also used for a special synchronizing method in Computer Science, where only one part of a multitasking system may access a limited resource.