Provides a mechanism to regulate access to resources.
Semaphores are more general than locks because they aren't tied to a
particular scalar. They can have values other than 0 or 1
and can be incremented or decremented by a specified number.
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.