lkml.org 
[lkml]   [1996]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    Subjectnanosleep

    Tom Bjorkholm writes:

    > nanosleep

    Speaking of which, from nanosleep:

    if (t.tv_sec == 0 && t.tv_nsec <= 2000000L &&
    current->policy != SCHED_OTHER) {
    /*
    * Short delay requests up to 2 ms will be handled with
    * high precision by a busy wait for all real-time processes.
    */
    udelay((t.tv_nsec + 999) / 1000);
    return 0;
    }

    Busy waiting for 2ms seems like a performance hit - 2 micro seconds maybe...

    -Nat


    \
     
     \ /
      Last update: 2005-03-22 13:37    [W:0.017 / U:149.532 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site