deleting task wich have a semaphore

jgpeiro wrote on Saturday, April 10, 2010:

When some task deletes another task wich have a semaphore, the semaphore automatically gives? or it is bloqued forever?

Regards
Jose Antonio Garcia Peiro

richard_damon wrote on Saturday, April 10, 2010:

I don’t believe FreeRTOS handles this sort of condition automatically. Note that semaphores are not “owned” by a task, and in fact one common usage is a producer task/interrupt raises the semaphore, and a different task lowers it, and this continues indefinitely. On the other hand a mutex is owned by a particular task. I don’t think that FreeRTOS will automatically release the mutex if the task is deleted.