Better solution [was: Re: [BUG][Linux] VM2.8 port eats processor
cycles]
Bert Freudenberg
bert at isgnw.CS.Uni-Magdeburg.De
Fri Jun 30 10:46:57 UTC 2000
On Fri, 30 Jun 2000, David T. Lewis wrote:
> On Thu, Jun 29, 2000 at 10:15:28PM +0200, Bert Freudenberg wrote:
> > On Thu, 29 Jun 2000, Tim Rowledge wrote:
> >
> > > > nanosleep(&sleepTime, &reminderTime);
> > > Excellent - do you know if it actually portable to most unices, or is it
> > > likely to be a hit and miss affair?
> >
> > It's a POSIX standard function. I checked (the manpages) on Irix and
> > SunOS. For Suns, it seems you have to link with libposix4 though ...
> >
> > -- Bert
> >
> It will be somewhat hit and miss.
> For example, BDSI does not seem to have it.
>
> bash-2.02$ uname
> BSD/OS
> bash-2.02$ man nanosleep
> man: no entry for nanosleep in the manual.
>
Maybe in BSD there is some other short sleep than usleep?
>From SunOS man page: "Interactions between usleep() and either alarm(2)
or sleep(3C) are unspecified." Which seems bad to me.
-- Bert
More information about the Squeak-dev
mailing list
|