Semaphores
ä Synchronization tool (provided by the OS)
that do not require busy waiting
ä A semaphore S is an integer variable that,
apart from initialization, can only be
accessed through 2 atomic and mutually
exclusive operations:
ä wait(S)
ä signal(S)
ä To avoid busy waiting: when a process has
to wait, it will be put in a blocked queue of
processes waiting for the same event