First page Back Continue Last page Graphics
Encapsulating Semaphores
The act of putting Give and Get semaphore routines throughout your code causes an increased probability of mistakes being made.
Encapsulate Semaphore routines so that tasks that want to execute some behavior involving the semaphore make a call to a single routine
- The Get and Give calls are inside this encapsulated routine.