lkml.org 
[lkml]   [1999]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Can't sleep less than 20 ms
    On Thu, Jul 01, 1999 at 06:12:24PM -0400, Dong Liu wrote:
    > Hi,
    >
    > I know Linux on i386 has a timer resolution of 10 ms, but
    > why I can't sleep for 10 ms, I can only sleep at
    > interval of 20 , 30, 40 ... ms.

    this is what the man page says :

    (from man 3 usleep)
    ...
    DESCRIPTION
    The usleep() function suspends execution of the calling
    process for usec microseconds. The sleep may be length­
    ened slightly by any system activity or by the time spent
    processing the call.
    ...

    hope this helps
    Joerg
    --
    Linux is like a wigwam: no gates, no windows, and an apache inside

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

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