Right now, I just want to introduce you to a concept that is very, very, very similar to the SEMAFO
Create Binary, which is called mutex.
Now, the implementation is 99 percent similar, but there is more differences in handling priority.
Now, the differences here, a little bit advanced for this course.
And I'm not going to get into it, but I'm just showing you this so that if you are reading some auto's
open source code or if you encountered the word mutex, you know what it is for now, you can just imagine
a mutex as being a binary semaphore.
And actually the interfacing with the mutex is the same as the one in the binary semaphore.
Here you have take and give the semaphore and it is the same as the mutex.
Now, if I applaud the code, I will absolutely have no difference whatsoever.
We can check that together.
As you can see.
There is no difference at all, I'm getting the same thing, though.
I just wanted to introduce you quickly to this concept.