How many threads does RTEMS create?

Joel Sherrill joel at rtems.org
Mon Dec 28 15:55:33 UTC 2020


On Mon, Dec 28, 2020, 12:18 AM Richi Dubey <richidubey at gmail.com> wrote:

> Hi,
>
> When I am debugging the tm24 running on Strong APA scheduler, I can see
> that when the Tasks
> <https://git.rtems.org/rtems/tree/testsuites/tmtests/tm24/task1.c#n106>
> function is being executed, there are two threads with priority 2, with
> status SCHEDULER_SMP_NODE_BLOCKED in the list of threads, with both of them
> having different addresses. How can there be two such threads?  Shouldn't
> there only be a single thread with priority 2 that runs the High_task
> <https://git.rtems.org/rtems/tree/testsuites/tmtests/tm24/task1.c#n77>
> function? Please let me know your views about this.
>

You can always compare the behavior with a normal uniprocessor build.

But this test has Init, High, IDLE, and OPERATION_COUNT+2 medium tasks.
All should be at unique priorities.

It looks like the test is doing two timing operations. These are for
specific yield cases. Which one isn't behaving right for you?

>
>
>
> Thank you,
> Richi.
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20201228/1f311b37/attachment.html>


More information about the devel mailing list