[En-Nut-Discussion] Maybe obvious ...

Nathan Moore nategoose at gmail.com
Fri Nov 13 15:52:06 CET 2009


>
> main() {
>   fprintf( fp, "Hello World" );
>   while( true );
> }
>
> This could yield before the while loop based on what the file described by
fp did with _write, which is called indirectly by fprintf.
_write could call NutEventWait which calls NutThreadYield.

Once you got into the while loop there wouldn't be any more context
switching, so no other threads could run.


Nathan



More information about the En-Nut-Discussion mailing list