문제

Why (and how) mutex can deal with priority inversion and semaphores not?

I read in lots of places that the difference (one of them) between mutex and semaphore is priority inversion, can anyone explain please?

도움이 되었습니까?

해결책

From Wikipedia:

Since the mutex knows its current owner, it is possible to promote the priority of the owner whenever a higher-priority task starts waiting on the mutex.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top