This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTX Mutex Vs  Binary Semaphore

Hi Experts,

In CMSIS RTX how the mutex and binary semaphore is handled ?

For example, in case of mutex is locked for some hardware peripheral drivers whether the task switch will be disabled ? or by any other means ?

Also where the binary semaphore should be used and where the mutex should be used ?

Parents
  • Now when thread A is trying to access the same mutex locked peripheral driver of thread B then thread A will be put into waiting state.

    Yes, that is correct.

    Note that CMSIS RTOS RTX also implements Priority Inversion.  Refer to the documentation ..\CMSIS/RTOS/RTX/Doc/_theory.html#PriorityInversion

Reply
  • Now when thread A is trying to access the same mutex locked peripheral driver of thread B then thread A will be put into waiting state.

    Yes, that is correct.

    Note that CMSIS RTOS RTX also implements Priority Inversion.  Refer to the documentation ..\CMSIS/RTOS/RTX/Doc/_theory.html#PriorityInversion

Children