Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!rbj From: rbj@uunet.UU.NET (Root Boy Jim) Newsgroups: comp.unix.wizards Subject: Re: usleep by poll() Message-ID: <127226@uunet.UU.NET> Date: 2 Apr 91 00:30:04 GMT References: <126500@uunet.UU.NET> <6925@auspex.auspex.com> <999@muffin.cme.nist.gov> Organization: UUNET Communications Services, Falls Church, VA Lines: 17 In article <999@muffin.cme.nist.gov> libes@cme.nist.gov (Don Libes) writes: > >The BSD analog to this function is defined in terms of microseconds >while poll() is defined in terms of milliseconds. For compatibility, >this function provides accuracy "over the long run" by truncating >actual requests to milliseconds and accumulating microseconds across >calls with the idea that you are probably calling it in a tight loop, >and that over the long run, the error will even out. Yeah, but what's the best resolution you've ever seen? Ten milliseconds seems to be the lowest. Since the average error is have the smallest scheduling interval, why bother? Perhaps they replaced the monster in 225's basement with a Cray? -- [rbj@uunet 1] stty sane unknown mode: sane