Hi all,
I'm investigating the dead-lock possibility of MQX Task.
Because, my customer wants to know it.
I have any question about MQX Task States.
I want to tell me about the condition of indicating with Blue in an attached file.
Best Regards,
George
Solved! Go to Solution.
Yes, if a task is waiting for a resource, it is in the BLOCKED state.After acquiring the resource, it goes to the READY state, or to the ACTIVE state afterwards (depends on situation).
Hello George,
I am trying to understand your question.
If TaskA is waiting for semaphore that is currently owned by TaskB and TaskB is waiting for event that can be signalled by TaskA, then the deadlock occurs.
Is that what you wanted to know?
Thanks Juraj,
I understood the example which a deadlock occurs.
The condition which indicates in the light blue in an attached file should tell to which of (1)-(6) it corresponds.
When a Task is kept waiting by Mutex, Semaphore and Event, is a Task in Blocked?
Best Regards,
George
Yes, if a task is waiting for a resource, it is in the BLOCKED state.After acquiring the resource, it goes to the READY state, or to the ACTIVE state afterwards (depends on situation).
Thanks Juraj,