Token Release Behaviour in Mutex vs Semaphore

Hi,

I have a question regarding the usage and behaviour of Mutex vs Semaphore in RTX v4.7, in which I have two threads that needs to access a critical section.

Obviously Mutex seems to be the more appropriate choice than Semaphore since only 1 token is enough to control access to the critical section...however I need to release the token in ISR and Mutex does not allow this while Semaphore does..

What makes the difference here?

Thanks.

Parents Reply Children
No data
More questions in this forum