This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Multi thread Preemption

Other Parts Discussed in Thread: TMS320C6424

Hi,

 We have an application in TMS320C6424. Six threads are running in this parallelly, among them 5 are having equal priority and one is having higher priority. Task_Yield() is used to switch between the threads. Inside one thread we have a library call which is taking long time to execute. While executing this library function if the higher priority thread is sheduled, will this stop the library execution in between and move to execute the higher priority task or will this wait until the library execution completes and move to the higher priority task?.

  • Assuming the library call does not disable interrupts or impacts the task scheduling (e.g. changes priority), the higher priority task will preempt the lower priority task. Once the high priority task is completed, the lower priority task that was running will continue to execute (assuming no other higher priority task is now ready).

     

    Todd