Binary semaphore implementation by counting semaphore


#1

can binary semaphore be implemented by counting semaphore and how ?


#2

Yes it can be implemented using counting semaphore. We just have to limit the range of the variable to {0,1} .