deleting task wich have a semaphore

When some task deletes another task wich have a semaphore, the semaphore automatically gives? or it is bloqued forever? Regards
Jose Antonio Garcia Peiro

deleting task wich have a semaphore

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.