Page 1 of 1

nilRTOS, is there an equivalent to yield ?

Posted: Tue Jun 09, 2015 2:33 pm
by andrew_tholt
Hi,

I'm looking for a way for a thread to basically say, "I'm done for now somebody else can run" without a delay. In co-op systems this would be 'yield' or 'pause'.

Or does reschedule do this ?

Thanks,
Andrew

Re: nilRTOS, is there an equivalent to yield ?

Posted: Tue Jun 09, 2015 4:02 pm
by Giovanni
Hi,

There is no need, NIL is preemptive and there are no threads at same priority. When you go to sleep you yield implicitly.

Giovanni