Doubt regarding thread creation in RTEMS

Richi Dubey richidubey at gmail.com
Thu Jul 23 11:10:54 UTC 2020


Thank you for the clarification.

On Thu, Jul 23, 2020 at 12:25 PM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> On 23/07/2020 08:12, Richi Dubey wrote:
>
> > I am still having a hard time understanding this. What do you mean by
> > no code which blocks? Does the thread which executes our task (Say a
> > function Loop with 30k loops) block? What does block mean here?
>
> Block means here that the thread calls _Scheduler_Block(). If it
> executes an infinite loop, then it does NOT block. Actually, the default
> implementation of an idle thread body is:
>
> void *_CPU_Thread_Idle_body( uintptr_t ignored )
> {
>    while ( true ) {
>      /* Do nothing */
>    }
>
>    return NULL;
> }
>
> On most targets, it is an infinite loop which executes a some code which
> puts the processor in a low-power mode.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200723/e6a81ff4/attachment-0001.html>


More information about the devel mailing list