Although POSIX supports mutexes, they are only visible between threads. To work between processes, a binary semaphore must be used.
Creating a semaphore with a limit on the count of 1 effectively restricts the semaphore to being a binary semaphore. When the binary semaphore is available, the count is 1. When the binary semaphore is unavailable, the count is 0.
Since this does not result in a true binary semaphore, advanced binary features like the Priority Inheritance and Priority Ceiling Protocols are not available.
There is currently no text in this section.
Copyright © 1988-2004 OAR Corporation