From: mogul@pa.dec.com (Jeffrey Mogul)
Subject: Re: nanosleep on DEC3000 for OSF/1 v3.0
Date: 1995/10/13 [thread overview]
Message-ID: <45kfgk$aqc@usenet.pa.dec.com> (raw)
In-Reply-To: 45h6k9$pm4@hammer.msfc.nasa.gov
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
prev parent reply other threads:[~1995-10-13 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-10-11 4:00 nanosleep on DEC3000 for OSF/1 v3.0 Geoffrey C. Hintze
1995-10-12 4:00 ` Brian Field
1995-10-13 4:00 ` Eric Werme
1995-10-13 4:00 ` Jeffrey Mogul [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox