11  Why semaphores?

Looking at the definition of semaphores, it is not at all obvious why they are useful. It’s true that we don’t need semaphores to solve synchronization problems, but there are some advantages to using them: