Re: Scheduler activations (IIRC) question

From: Jamie Lokier
Date: Sun Aug 17 2003 - 13:49:29 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/