what do you mean by semaphore in operating system
Semaphore (programming)
a variable or abstract data type used to control access to a common resource by multiple processes in a concurrent system such as a multitasking operating system