From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1c44795abdadca8 X-Google-Attributes: gidfee84,public From: mogul@pa.dec.com (Jeffrey Mogul) Subject: Re: nanosleep on DEC3000 for OSF/1 v3.0 Date: 1995/10/13 Message-ID: <45kfgk$aqc@usenet.pa.dec.com>#1/1 X-Deja-AN: 117440196 distribution: world references: <45h6k9$pm4@hammer.msfc.nasa.gov> organization: DEC Western Research keywords: sleep nanosleep newsgroups: comp.unix.osf.osf1 In article <45h6k9$pm4@hammer.msfc.nasa.gov> hintze@mohave.NoSubdomain.NoDomain (Geoffrey C. Hintze) writes: >I'm developing a program that needs to wait. Sleep works but I want >to wait less than 1 sec(more like 50 millisec). I tried the nanosleep >function (which was nanosleep_d9 in the library) but it returned a -1 >and an errno of 78 (which means the function is not implemented). Does >anyone have any suggestions? This might only be available in a real-time kernel. Try either napms() or usleep() (both have man pages). Note that the resolution of any of these mechanisms is about 1 msec (1/1024 seconds, actually). -Jeff