[En-Nut-Discussion] RTOS Comparison

Michael Fischer fischermi at t-online.de
Tue Mar 23 20:04:56 CET 2010


Hello Nathan,

 >Did he test just context switching or the entire schedule?

THREAD(HP, arg)
{
    NutThreadSetPriority(16);
    while(1)
    {
       NutEventWait(&HPSuspend, NUT_WAIT_INFINITE);
       LedOff();
    }
}

THREAD(LP, arg)
{
    NutThreadSetPriority(128);
    while(1)
    {
       NutSleep(100);

       LedOn();
       LedOff();

       LedOn();
       NutEventPost(&HPSuspend);
    }
}

The test was with a semaphore, switch from the low priority task to the
high priority one.

Best regards,

Michael



More information about the En-Nut-Discussion mailing list