Re: Scheduler activations (IIRC) question

Jamie Lokier
2003-08-17T18:46:16Z

Mike Galbraith wrote:
> ...once the shadow task is enqueued and runnable, there's nothing to
> prevent the worker thread from exhausting it's slice before it can put it's
> shadow back to sleep.

This is why the shadow needs to check whether the active task is
runnable when the shadow returns from FUTEX_WAIT. Reading
/proc/pid/stat alas, but hey that's what we have.

-- Jamie