lkml.org 
[lkml]   [2002]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Question about sched_yield()
    At 11:00 AM 6/18/2002 -0700, David Schwartz wrote:
    >This is the same error repeated again. Since you realize that an endless
    >loop on sched_yield is *not* equivalent to blocking, why do you then say "in
    >fact doing useful work"? By what form of ESP is the kernel supposed to
    >determine that the sched_yield task is not 'doing useful work' and the other
    >task is?

    By this form of ESP: sched_yield() means "I have nothing better to do right now, give my time to someone who does". If a thread is doing useful work, why would it call sched_yield() ?!?


    --
    Stevie-O

    Real programmers use COPY CON PROGRAM.EXE

    -
    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.022 / U:244.344 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site