Subject: Re: usleep() and system clock resolution
To: Jason R Thorpe <thorpej@zembu.com>
From: Eduardo Horvath <eeh@turbolinux.com>
List: netbsd-help
Date: 05/18/2000 13:50:56
On Thu, 18 May 2000, Jason R Thorpe wrote:

> On Thu, May 18, 2000 at 02:34:09PM -0500, Ruibiao Qiu wrote:
> 
>  > >That would make the granularity slightly less than 5ms, and might work
>  > >on a PC.
>  > 
>  > Thanks.  So, you mean I cant do anything with it on my Sparc 2 and
>  > Sparc-5 boxes?  
> 
> Oh, it'll probably work fine there, too.  The kernel is supposed to tell
> you if it can't get the resolution you requested and fall back onto some
> reasonable default.

The counter-timer on SPARCs has 1us resolution so you need to use some
multiple of that.  But those machines are rather slow, especially the
sparc 2, and the scheduler is not the fastest so you may see performance
degradation and/or interrupt latency issues.

Eduardo Horvath