Using Semaphores
Semaphores are also provided in both System V and POSIX styles. For more information, see System V Semaphores and POSIX Semaphores.
Note that using semaphores can cause priority inversions unless priority inversions are explicitly avoided by the techniques mentioned earlier in this chapter.