Re: Can't sleep less than 20 ms

Joerg Beyer (J.Beyer@science-computing.de)
Fri, 2 Jul 1999 07:38:45 +0200


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/