Path: utzoo!news-server.csri.toronto.edu!rutgers!dimacs.rutgers.edu!seismo!uunet!mcsun!hp4nl!orcenl!bengsig From: bengsig@dk.oracle.com (Bjorn Engsig) Newsgroups: comp.unix.aix Subject: Re: Does AIX have a function like sginap()? Message-ID: <1287@dkunix9.dk.oracle.com> Date: 11 Mar 91 09:19:15 GMT References: Reply-To: bengsig@dk.oracle.com (Bjorn Engsig) Organization: Oracle Denmark Lines: 17 Article by mccalpin@perelandra.cms.udel.edu (John D. McCalpin) says: |'sginap(i)' which: | -- with an argument of 0, will release control to any other | process with the same or higher priority; or | -- with an argument i>0, will sleep for 'i' clock ticks. | |I cannot use the normal 'sleep()' routines, since the actual latencies |involved are much smaller than 1 second, You have at least two options that do more or less what you want: - use usleep(), which is available in C, so you might need a fortran interface, but I actually doubt it. It will sleep for a number of micro seconds. - Use kernel extensions. There are a number of kernel extension that handle scheduling and related matters. -- Bjorn Engsig, ORACLE Corporation, E-mail: bengsig@oracle.com, bengsig@oracle.nl