Mike Tewner wrote:
I'm a complete novice when it comes to these things -

but is it possible that somewhere, something is doing an optimization? Compiler? CPU?

Perhaps some subsystem along the way sees that fair scheduling would take much longer.


The longer time is an artifact of my use of sched_yield to acheive the result, not a requirement of fairness per sa, but in a way you are right - the programers that wrote the kernel did the optimization by not bothering to deal with things that don't happen in the real world that cost a lot to deal with :-)

Gilad

--
Gilad Ben-Yossef <[EMAIL PROTECTED]>
Codefidence. A name you can trust(tm)
http://www.codefidence.com
Phone: +972.3.7515563 ext. 201  | Cellular: +972.52.8260388
SIP: [EMAIL PROTECTED]  | Fax: +972.3.7515503

        Lacking fins or tail
        the gefilte fish swims with
        great difficulty.

          -- A Jewish Haiku

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to