What are the different types of semaphore?
Principally the semaphore is able to be classified into two on the basis of their values
a) Counting semaphore: In counting semaphore the value of the semaphore is able to be any integer. It can be execute using binary semaphore.
b) Binary semaphore: In binary semaphore the value of the semaphore is able to be either one or zero. It is comparatively easier to implement.