<div dir="ltr">Also, heir means something that would be executing later, after the current thread leaves cpu, right?<div><br></div><div>Why is it then that we are <a href="https://git.rtems.org/rtems/tree/testsuites/smptests/smpschededf02/init.c#n268">checking</a> against is_idle not against cpu->executing but for cpu->heir?</div><div><br></div><div>Please let me know.</div><div>Thanks </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 4, 2020 at 3:18 PM Richi Dubey <<a href="mailto:richidubey@gmail.com">richidubey@gmail.com</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"><div dir="ltr">Hi,<br><div><br></div><div>I wanted to learn about how the <a href="https://git.rtems.org/rtems/tree/testsuites/smptests/smpschededf02/init.c#n219" target="_blank">reset</a> function in the smpschededf02/init.c works/what it aims for.</div><div><br></div><div><a href="https://git.rtems.org/rtems/tree/testsuites/smptests/smpschededf02/init.c#n224" target="_blank">First</a>, we set the priority of the task in correspondence with their index, so Task 0 gets highest priority and set the affinity of all the task to both the processor.</div><div><br></div><div><a href="https://git.rtems.org/rtems/tree/testsuites/smptests/smpschededf02/init.c#n229" target="_blank">Then</a>, we suspend all the task by suspending their thread and enable the dispatch on thread's CPU.</div><div><br></div><div>After that, why do we <a href="https://git.rtems.org/rtems/tree/testsuites/smptests/smpschededf02/init.c#n234" target="_blank">resume</a> the first two task and then again <a href="https://git.rtems.org/rtems/tree/testsuites/smptests/smpschededf02/init.c#n247" target="_blank">suspend </a>them by using the object id of their thread?</div><div> </div></div>
</blockquote></div>