>
> The scheduler should only work
> with nodes which belong to a thread which is ready to execute, e.g. made
> visible to the scheduler via the unblock and ask_for_help operations.

Got it. Maybe this is why my get_highest_ready function was failing.

Also, how does the insert_ready function work? What are the rules for a
node being in the ready queue?

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?

On Mon, Aug 17, 2020 at 2:28 PM Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:

> On 17/08/2020 10:45, Richi Dubey wrote:
>
> > Hi,
> >
> > My code (link to the exact line here
> > <
> https://github.com/richidubey/rtems/blob/e679ffa2044e264aad25c733300a5ae14a6b708d/cpukit/score/src/schedulerstrongapa.c#L773>)
>
> > adds all the scheduler nodes in a chain at the time of initialization.
> Why do you need this list of all nodes? The scheduler should only work
> with nodes which belong to a thread which is ready to execute, e.g. made
> visible to the scheduler via the unblock and ask_for_help operations.
>
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to