Question: what is the difference between counting and binary semaphores?
Answer: A semaphore has two parts : a counter, and a list of tasks waiting to access a particular resource. ... In a binary semaphore, the counter logically goes between 0 and 1. You can think of it as being similar to a lock with two values : open/closed. A counting semaphore has multiple values for count.