Running the chapter’s example-programsSemaphoresUnderstanding semaphoresCounting semaphoresBinary semaphoresUsing semaphoresSynchronization via binary semaphoresWasting cycles – synchronization by pollingTime-bound binary semaphoresCounting semaphoresPriority inversion (how not to use semaphores)Understanding priority inversionAn example-program, with priority inversionUnderstanding the codeUnderstanding the behaviorMutexesUnderstanding mutexesAn example-program, fixing priority-inversionUnderstanding the codeUnderstanding the behaviorAvoiding mutex-acquisition timeoutsRace conditionsUsing mutexes and semaphores to avoid race conditionsA race-condition exampleSoftware timersUnderstanding software timersAn example-program, with one-shot and repeat timersUnderstanding the codeUnderstanding the behaviorSoftware-timer guidelinesExample use casesConsiderationsLimitationsSummaryFurther reading