Semaphores

semaphore

A Semaphore is basically an object that allows Threads to synchronize their processing paths, with two methods we will denote, for the moment informally, by Wait and Notify. wait() and notify() will be discussed, formally, in a bit.