0

Is there any difference between a binary semaphore and mutex or are they essentially the same?

Semaphore function lock has FIFO queue in its internal implementation but mutex not having any queue -internal queue- .... am I right in that point? so threads that use semaphore will be queued by FIFO queue but mutex doesn't have internal queue in its function.

Also Im confused when we use mutex and when we use semaphore at which cases?

Thanks alot for your cooperation / help.

  • 1
    Does this answer your question? [Difference between binary semaphore and mutex](https://stackoverflow.com/questions/62814/difference-between-binary-semaphore-and-mutex) – EOF Aug 01 '21 at 11:02

0 Answers0