Binary Semaphores (Locks)

This lesson talks about a special kind of semaphores, the binary semaphores.

We are now ready to use a semaphore. Our first use will be one with which we are already familiar: using a semaphore as a lock. Look at the code snippet below.

Get hands-on with 1400+ tech skills courses.