[En-Nut-Discussion] NutSleep(0) doesn't yield

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Tue Sep 5 16:38:15 CEST 2006


Hallo,

with following code 

main
...
  NutThreadCreate("t1", Display, 0, 128);
  while(1)
    {
      icnt++;
      NutSleep(0);
    }
  return 0;

Thread t1 is never called, changing to NutSleep(1), the thread is called. I
thought, that even NutSleep(0) is a scheduling point.

How else can I yield in main() with minimal impact.

Thanks
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------



More information about the En-Nut-Discussion mailing list