Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is difference between binary semaphore and mutex?

binary mutex semaphore
0
Posted

What is difference between binary semaphore and mutex?

0

The differences are: 1) Mutex can be used only for mutual exclusion, while binary can be used of mutual exclusion as well as synchronisation. 2) Mutex can be given only by the task that took it. 3) Mutex cannot be given from an ISR. 4) Mutual-exclusion semaphores can be taken recursively. This means that the semaphore can be taken more than once by the task that holds it before finally being released. 5) Mutex provides a options for making the task that took it as DELETE_SAFE. This means, that the task cannot be deleted when it holds mutex.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123