lkml.org 
[lkml]   [2002]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRE: Question about sched_yield()

>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/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.066 / U:4.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site