esp-idf, mutex and semaphore

mrdebug
Posts: 43
Joined: Sat Jul 27, 2019 8:26 am

esp-idf, mutex and semaphore

Postby mrdebug » Fri Jan 17, 2020 9:38 am

Hi, in esp-idf is there difference between mutex and semaphore?
Thanks.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: esp-idf, mutex and semaphore

Postby ESP_igrr » Fri Jan 17, 2020 3:12 pm

In FreeRTOS the main difference between the two is priority inheritance for mutexes. Also it is not allowed to release a mutex from the task other than the one where it was acquired.

https://www.freertos.org/Real-time-embe ... texes.html

Who is online

Users browsing this forum: No registered users and 107 guests