Operating Systems: Three Easy Pieces [Concurrency Ch.6: Semaphores]
Semaphores
One can use semaphores as both locks and condition variables.
A semaphore is an object with an integer value that we can manipulate
with two routines; in the POSIX standard, these routines are sem wait()
and sem post()1
. Because the initi...
3omar.hashnode.dev13 min read