This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Change thread priority

Hi friends,

I have three threads in my RTOS. When I define priorities for all threads identically, there is no problem and all the three threads run normally. But when I change the priority of one of threads (to above the priority of other two) the other two threads do not execute. Is there any property that I must change or define to be able to change the priority? Or sth. else?

My threads' definitions in normal case:
osThreadDef (job1, osPriorityAboveNormal, 1, 0);
osThreadDef (job2, osPriorityAboveNormal, 1, 0);
osThreadDef (job3, osPriorityAboveNormal, 1, 0);

My threads' definitions when have problem:
osThreadDef (job1, osPriorityAboveNormal, 1, 0);
osThreadDef (job2, osPriorityAboveNormal, 1, 0);
osThreadDef (job3, osPriorityHigh, 1, 0);

p.s.: I have tried other priorities like osPriorityAboveNormal and ..., but the problem persists.

Your prompt response would be greatly appreciated,
Elham

0