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

debug a round-robin timeout thread switch event

Hello,

if I use several threads in RTX V5 I can pass control to another thread if I call a function like osDelay(), osThreadYield() etc.

If the thread does not pass control to another thread, the round-robin-timeout passes control to another thread.

Can I trigger on such a round-robin-timeout event?

Thank you.

Parents
  • Hi Christopher,

    thank you for an answer.
    You are right, if I want to explicitely pass control to another thread I would rather send a flag.
    The main question is:
    If fy firmware has a bug and does *not* pass control to another thread with same priority, I would not see this bug directly, because the scheduler automatically passes control to the other thread if the round-robin-timeout is reached.
    Therefor I would like to get an event for this case. (event: thread change caused by round-robin-timeout).

    Regards,

    Gunnar

Reply
  • Hi Christopher,

    thank you for an answer.
    You are right, if I want to explicitely pass control to another thread I would rather send a flag.
    The main question is:
    If fy firmware has a bug and does *not* pass control to another thread with same priority, I would not see this bug directly, because the scheduler automatically passes control to the other thread if the round-robin-timeout is reached.
    Therefor I would like to get an event for this case. (event: thread change caused by round-robin-timeout).

    Regards,

    Gunnar

Children