[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] mintlib wide character overhaul



On 02/22/13 16:31, Eero Tamminen wrote:
Hi,

On perjantai 22 helmikuu 2013, Alan Hourihane wrote:
FYI. I've just committed a real sched_yield() implementation to the
mintlib.
Note for anybody using sched_yield(), at least on Linux...

On Linux sched_yield() puts the _process_ calling it to the end
of scheduling queue, so calling it from a thread, to switch to
another thread, in process that is supposed to have low latency
(e.g. in audio process) is a bad idea.

I guess same applies on MiNT?


I defer to the kernel's yield code, which essentially rewards the nice()est process, and puts us on the READY queue and then goes to sleep.

Alan.