What is semaphore?

Semaphore is a hardware or software flag. It is facility provided by operating system. In multitasking systems, a semaphore is a variable with a value that indicates the status of a common resource. It’s used to lock the resource that is being used. A process needing the resource checks the semaphore to determine the resource’s status and then decides how to proceed.

Related Post

What is mutex?
What is a critical section in embedded software programs?
How many ways shared data problem can be solved?

Comments

Leave a Reply




Technology