Skip to main content
NMALH
Associate II
July 14, 2021
Question

Creating two task with one as realtime and second as idle priority, but as both task execute for say n minutes, program counter does not come into the task again, even you have a infinite for loop in both task.

  • July 14, 2021
  • 1 reply
  • 633 views

..

This topic has been closed for replies.

1 reply

Sebastiaan
Associate II
July 14, 2021

Hi,

A code example (main() and the 2 threads) would probably help, the current description is insufficient.

If you have a busy-while loop without e.g. OsDelay() in the realtime thread, it's expected that the idle thread will never kick in.

Best regards,

Sebastiaan