RE: Question about sched_yield()

From: David Schwartz (davids@webmaster.com)
Date: Tue Jun 18 2002 - 17:00:42 EST


>Correct my logic, please:
>
> 1. Rule: The less you want the CPU, the more you get it.

        The more you relinquish the CPU, the more you get it when you do want it.
(Dynamic priority.)

> 2. A yielder process never wants the CPU

        A yielder process *always* wants the CPU, but always relinquishes it when it
gets it. (It's always ready-to-run.)

> 3. As a result of Rule 1, it always gets it.

        The correct rules 1 and 2 don't lead to the conclusion you think.

        DS

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



This archive was generated by hypermail 2b29 : Sun Jun 23 2002 - 22:00:17 EST