AW: [En-Nut-Discussion] Again a thread question
Oliver Schulz
Oliver.Schulz at bong.de
Wed Jun 9 12:41:19 CEST 2004
Hi Ole,
yes it is an intended behaviour.
Before entering the for loop in main, set the main thread priority to a value below 90.
Explaination follow later...
Cheers,
Oliver.
> -----Ursprüngliche Nachricht-----
> Von: en-nut-discussion-bounces at egnite.de
> [mailto:en-nut-discussion-bounces at egnite.de]Im Auftrag von
> Ole Reinhardt
> Gesendet: Mittwoch, 9. Juni 2004 11:47
> An: Ethernut User Chat (English)
> Betreff: [En-Nut-Discussion] Again a thread question
>
>
> Hi again,
>
> sorry for all my questions, but since I'm still new to Nut/Os
> I run into
> problems from time to time...
>
> Is the folling behavior a bug or wanted?
>
> I have my main thread and create another thread running with lower
> priority (e.g. 90). Some other thread are also running (network, can).
>
> My main program looks like the following
>
> void main (void)
> {
> Init();
> NutThreadCreate("lcd_show_config", LCD_SHOW_CFG, NULL, 64);
> for (;;) {
> NutThreadYield();
> }
> }
>
> My problem is now that the LCD_SHOW_CFG thread never gains cpu time
> (it's running with priority 90)
>
> When I replace NutThreadYield with NutSleep(70) everything works fine.
>
> Any suggestions?
>
> Regards,
>
> Ole Reinhardt
> --
> kernel concepts Tel: +49-271-771091-14
> Dreisbachstr. 24 Fax: +49-271-771091-19
> D-57250 Netphen E+ : +49-177-7420433
> --
>
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
More information about the En-Nut-Discussion
mailing list