MOO-cows Mailing List Archive
Re: Suspend() question
In message <9509090317.AA12547@netmail2.microsoft.com> , you wrote:
> > My question is: Is it possible to make a suspend function that would
> > suspend for less than a second?
> Not portably. There evidently exist a number of SYSV-derived unices
> in which getting a usable millisecond wall-clock time is not possible.
...in which case you could round up to the nearest whole second, right?
Functions like suspend/fork only guarantee that you'll sleep for *at
least* the time specified.
If you're trying to use it for some application which requires ms
accuracy, you'll lose when you start transmitting over the network
Subject Index |