Question about MQX Task States

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Question about MQX Task States

Jump to solution
1,419 Views
george
Senior Contributor II

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.

PRI_20121228181254.bmp

Best Regards,

George

0 Kudos
Reply
1 Solution
810 Views
JuroV
NXP Employee
NXP Employee

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).

View solution in original post

0 Kudos
Reply
4 Replies
810 Views
JuroV
NXP Employee
NXP Employee

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?

0 Kudos
Reply
810 Views
george
Senior Contributor II

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

0 Kudos
Reply
811 Views
JuroV
NXP Employee
NXP Employee

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).

0 Kudos
Reply
810 Views
george
Senior Contributor II

Thanks Juraj,

0 Kudos
Reply