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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-07-14 12:21 AM
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-07-14 7:03 AM
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
