Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: sleep()ing less than a second Keywords: nap() function SysV BSD source Message-ID: <2774@auspex.auspex.com> Date: 20 Dec 89 21:48:54 GMT References: <89348.231211BACON@MTUS5.BITNET> <2754@servax0.essex.ac.uk> <5235@tekig5.PEN.TEK.COM> Organization: Auspex Systems, Santa Clara Lines: 12 > Some time ago, I was posed with the problem of doing the equivalent >of nap() on BSD. The equivalent of "nap" in 4.3BSD is "usleep", and comes with the system. In 4.2BSD, you can either use "setitimer" etc. as you've done, or you can use "select". >Since SysV had nap(), Correction. *Some* versions of System V *may* have "nap()"; I don't think it's universally available. In System V Release 3, you may be able to use "poll" in much the same way you use "select" in 4.2BSD.