Dear all,
the SYSBIOS guide states:
Binary semaphores are either available or unavailable. Their value cannot be incremented beyond 1.
Thus, they should be used for coordinating access to a shared resource by a maximum of two tasks.
Counting semaphores keep an internal count of the number of corresponding resources available. When
count is greater than 0, tasks do not block when acquiring a semaphore. The maximum count value for
a semaphores plus one is the number of tasks a counting semaphore can coordinate.
The semaphore count is initialized to count when it is created. In general, count is set to the number of
resources that the semaphore is synchronizing
What if I have one resource shared among several tasks? I assume using a binary semaphore is fine and the tasks pending on the semaphore will all stop. Am I missing something?