What is a semaphore?

Eunice Ache
Eunice Ache

Posted On: Apr 11, 2020

 

Semaphore is simply a variable that is non-negative and shared between threads. This variable is used to solve the critical section problem and to achieve process synchronization in the multiprocessing environment.

There are two types of Semaphores they are Binary Semaphore and Counting Semaphore.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions