DELAY(9) BSD Kernel Developer's Manual DELAY(9)NAME
DELAY -- busy loop for an interval
SYNOPSIS
#include <sys/types.h>
#include <sys/systm.h>
void
DELAY(int delay);
DESCRIPTION
Delay for delay microseconds (1/1000000th of a second).
SEE ALSO pause(9)AUTHORS
This manual page was written by Alfred Perlstein.
BSD April 20, 2013 BSD
Check Out this Related Man Page
DELAY(9r)DELAY(9r)NAME
DELAY - General: Delays the calling routine a specified number of microseconds
SYNOPSIS
void DELAY(
int Specifies n );
ARGUMENTS
Specifies the number of microseconds for the calling process to spin.
DESCRIPTION
The DELAY routine delays the calling routine a specified number of microseconds. DELAY spins, waiting for the specified number of
microseconds to pass before continuing execution.
For example, the following code results in a 10000-microsecond (10-millisecond) delay:
.
.
.
DELAY(10000);
.
.
.
The range of delays is system dependent, due to its relation to the granularity of the system clock. The system defines the number of clock
ticks per second in the hz variable. Specifying any value smaller than 1 Hz to the DELAY routine results in an unpredictable delay. For any
delay value, the actual delay may vary by plus or minus one clock tick.
Using the DELAY routine is discouraged because the processor will be consumed for the specified time interval and therefore is unavailable
to service other processes. In cases where kernel modules need timing mechanisms, you should use the sleep and timeout routines instead of
the DELAY routine. The most common usage of the DELAY routine is in the system boot path. Using DELAY in the boot path is often acceptable
because there are no other processes in contention for the processor.
RETURN VALUES
None
SEE ALSO
Routines: sleep(9r), timeout(9r)DELAY(9r)
Hi all,
i would like to know how to introduce a delay in the execution of a cmd?
am trying to copy a file which is about 650 mb and then perform some actions on it..
however since its huge i would like to introduce a delay in exection until the process is over
i dont want it to proceed to... (10 Replies)
Hi all.
I have a problem at work which I have managed to break down into a simple test scenario:
I have written a monitoring script that outputs every second the status of various processes, but for now, lets just print the date
input.sh:
while true
do
date
sleep 1
done
This... (9 Replies)
Hi,
I am new to printing with Unix (AIX on HP).
I am printing from a COBOL program.
On our test system the page prints and does a Form Feed to the next page. This is good.
When I release the program to our customer it prints the page but waits 5 or more seconds before doing a page... (11 Replies)
Hi to all.
My first message here, but i following you via twitter feed from many time...
The question:
I need to delay 5-10 seconds the shutdown command executed when the user click on the power off/reboot in their session or at login screen.
I need that because i have in the background a... (18 Replies)
Hi All,
I am working on a script which requires an input from user within one 1 min.
So if the user gives the required input within 1 min., it will execute on the basis of input provided by the user.Other wise it will execute on a default value(hard coded inside the script).
Now, I am... (19 Replies)
I need to put a small delay into a shell script. I'm looking for something smaller than "sleep" - a second is way too long. I want to sleep something like 10 milliseconds. I've tried "usleep" and "nanosleep", but the script doesn't recognize them.
I'm using the bash shell but I'm willing to... (9 Replies)
When I am trying to login to a server using Putty ssh from my windows xp machine it is taking too much time for login.
My server name is http2 and when I enter this address into putty I immediately get
login as:
screen, but after I put my username root and enter the cursor moves downwards... (14 Replies)
We have an OpenServer 5.0.5 system that has worked forever, but I'm hearing complaints of logon delays for users now. Normally they would telnet in and the logon screen would pop up, but now it sometimes takes a minute or more, and the user must hit the enter key to get it to appear. Everything... (11 Replies)
Hi All,
I have solaris-11 global and multiple non-global zones running, which all are on same network. They are not in NIS. When we open putty session and give user-name, it takes long time in asking password (around 40-50 seconds) on Global zone. While on non-global zones, it is working... (9 Replies)
SOLARIS 9 Zone :
date command in crontab shows delayed(One Hour) output
Hi folks,
the date command shows the correct date and time, How ever, if the date command executed through crontab in any form of scrip the output shows as one hour delayed, similar to date -u..
Can some one help in... (12 Replies)
I'm having an issue with SSH on a server that hasn't had any configuration changes made on it in a long time. I SSH to the server and it hangs at "debug1: SSH2_MSG_KEXINIT sent" for exactly 40 seconds then connects fine after that pause. Everything I have found points to DNS, but I use host files... (19 Replies)
Dear all,
I got a problem and have no idea how to solve it.
I was searching in the forum and google it and have found similar problem but provided solution doesn't help me.
I have Solaris 11:
Oracle Solaris 11 11/11 X86
Copyright (c) 1983, 2011, Oracle and/or its affiliates. ... (13 Replies)
I have a BASH script that runs a continuous loop, reading a line from a file, and then spawning a background process to use it. I've placed "date" commands inside it to see where it's slowing down, and everything inside -- including reading the line from the file -- is fast, but the loop bogs... (34 Replies)
Hi guys.
You'd have to excuse me a bit, as I'm a noob. I really try to avoid asking questions and do research for whatever linux issues that may arise.
I am experiencing a long wait for the shell to come up when I ssh or telnet into a Sunos 5.10 environment.
It takes 70 seconds to give me... (12 Replies)
Hi all,
I would like some help with a sendmail problem:
We have a new system comprising of 4 T7-1 servers, each hosting 5 LDOMs, all domains running Solaris 11.3
All emails sent from every one of these domains (including the control domains) sit in the queue for 3 mins 11 secs (sometime 3m 12s,... (11 Replies)