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

Harald Kipp harald.kipp at egnite.de
Thu Sep 7 10:03:52 CEST 2006

At 17:21 05.09.2006 +0200, you wrote:
>Simpy call the specific function: NutThreadYield()
>----- Original Message ----- From: "Uwe Bonnes" 
><bon at elektron.ikp.physik.tu-darmstadt.de>
>>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.

By design, NutSleep(0) should be the same as NutThreadYield().

Uwe, did you change priorities? When a thread calls NutSleep(0),
it should give up the CPU, if there is another thread ready to
run at the _same_ or higher priority,


More information about the En-Nut-Discussion mailing list