What is the expected thread execution in tm24?

Richi Dubey richidubey at gmail.com
Thu Jan 14 06:30:17 UTC 2021


Hi,

In the Tasks function
<https://git.rtems.org/rtems/tree/testsuites/tmtests/tm24/task1.c#n106>,
when one of the OPERATION_COUNT thread calls rtems_task_wake_after(
RTEMS_YIELD_PROCESSOR), it yields the processor and goes
<https://docs.rtems.org/releases/rtemsdocs-4.6.2/share/rtems/html/c_user/c_user00077.html>
in the ready state. So, is it expected that the same thread gets the
execution again after the call to rtems_task_wake_after(
RTEMS_YIELD_PROCESSOR)? - because it is one of the threads with the highest
priority and is in the ready queue - like call to
<https://git.rtems.org/rtems/tree/testsuites/tmtests/tm24/task1.c#n90>
rtems_task_wake_after in the High_task function?

If yes, the thread finishes its execution after the call to
rtems_task_wake_after and the function also ends, does RTEMS try to find
the next heir to execute?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210114/d2558681/attachment.html>


More information about the devel mailing list