Synchronous thread exceeds the time limit by 100 to 200 us when using k_sleep #64889
Unanswered
aravinth-kalai
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone ,
I just created two threads , thread_1 will wake up the thread_2 then thread_1 will goes for sleep by every 20ms , thread_2 will do it's work and it goes for sleep forever , after that thread_1 will resume and the operation will goes on.
Thread_2 is sending some dummy data to CAN communication , when I see the data in CAN terminal , I can see the cycle time, the cycle time is not same for all time , most of the time it will be 20.1 or 20.2 ms but not exact 20ms.
May I know what's issue is causing the additional 100 to 200us, I measured the execution time of thread_2 it's around 1ms only , but why I'm getting additional 100 to 200us delay, I really want to eliminate the delay , please explain what is causing this delay and how to eliminate the delay .
Thanks in advance !
Beta Was this translation helpful? Give feedback.
All reactions