Resources: downey_LittleBookOfSemaphores_2_2_1.pdf
A way to ensure Synchronization with either a .wait()
, or .signal()
. Which respectively decrements or increments a value which is initialized to a certain value.
Common semaphore patterns:
If two threads run the same code, it is called a symmetric solution. If not, it’s called an asymmetric solution.