<div dir="ltr"><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The scheduler should only work<br>with nodes which belong to a thread which is ready to execute, e.g. made<br>visible to the scheduler via the unblock and ask_for_help operations.</blockquote><div>Got it. Maybe this is why my get_highest_ready function was failing. </div><div><br></div><div>Also, how does the insert_ready function work? What are the rules for a node being in the ready queue?</div><div><br></div><div>I am asking this because I need a list of all the nodes in the system, which are either ready to execute or are currently executing on a processor. How do I go about obtaining this list? </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 17, 2020 at 2:28 PM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 17/08/2020 10:45, Richi Dubey wrote:<br>
<br>
> Hi,<br>
><br>
> My code (link to the exact line here <br>
> <<a href="https://github.com/richidubey/rtems/blob/e679ffa2044e264aad25c733300a5ae14a6b708d/cpukit/score/src/schedulerstrongapa.c#L773" rel="noreferrer" target="_blank">https://github.com/richidubey/rtems/blob/e679ffa2044e264aad25c733300a5ae14a6b708d/cpukit/score/src/schedulerstrongapa.c#L773</a>>) <br>
> adds all the scheduler nodes in a chain at the time of initialization.<br>
Why do you need this list of all nodes? The scheduler should only work <br>
with nodes which belong to a thread which is ready to execute, e.g. made <br>
visible to the scheduler via the unblock and ask_for_help operations.<br>
</blockquote></div></div>