06-14-2004
Introducing Delay less then a second.
Hi,
I have a doubt in introducing a delay in the programs.
We know that we do have a sleep() function/api using which
we can bring a delay in terms of seconds.
A minimum delay can be atleast 1 second.
Now I'm bothered about how to introduce a delay that is just
less than a second. Like some amount of milli or microsecond delay.
Drivers that are associated with physical devices some time
requires to have a delay of some microsceonds for getting a
result of a query that has been submitted to the device.
So, how to introduce this microsecond delay. Probably like
we might requre some microseconds as the poling interval.
So, how to achieve this.
Let me know your ideas.
Regards
Vishwa.
3 More Discussions You Might Find Interesting
1. What is on Your Mind?
Hey guys, I am Shelby! :-) I am 13 years old and i love Unix. When i was about 6 i was introduced to computers, because almost all of my family is comprised of artists, i used macs at a very early age. I generally sat on the computer until the time i was about 10 when i walked into a laptop store... (2 Replies)
Discussion started by: mesaynaysayer
2 Replies
2. Programming
Hi guys,
I'm the maintainer of Imperfect world of Robots, and I'm here to introduce this project to any AI lover. This is a free (as in freedom) software and release under the terms of GNU General Public License.
Although it belongs to the programming game category, it's not only about... (0 Replies)
Discussion started by: aidin_36
0 Replies
3. What is on Your Mind?
Hello! I didn't see an Introduce Yourself/Meet and Greet board, so I think this might be the right place.
I'm a student and a new coder. I run Ubuntu 11.10 currently, and I program in Python, and I'm learning a few languages alongside.
Random pages:
Twitter - @NihilusV, other links can... (1 Reply)
Discussion started by: NihilusV
1 Replies
LEARN ABOUT CENTOS
ocf_heartbeat_delay
OCF_HEARTBEAT_DELAY(7) OCF resource agents OCF_HEARTBEAT_DELAY(7)
NAME
ocf_heartbeat_Delay - Waits for a defined timespan
SYNOPSIS
Delay [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION
This script is a test resource for introducing delay.
SUPPORTED PARAMETERS
startdelay
How long in seconds to delay on start operation.
(optional, integer, default 30)
stopdelay
How long in seconds to delay on stop operation. Defaults to "startdelay" if unspecified.
(optional, integer, default 30)
mondelay
How long in seconds to delay on monitor operation. Defaults to "startdelay" if unspecified.
(optional, integer, default 30)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 30.
stop
Stops the resource. Suggested minimum timeout: 30.
status
Performs a status check. Suggested minimum timeout: 30. Suggested interval: 10.
monitor
Performs a detailed status check. Suggested minimum timeout: 30. Suggested interval: 10.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 5.
EXAMPLE
The following is an example configuration for a Delay resource using the crm(8) shell:
primitive p_Delay ocf:heartbeat:Delay
op monitor depth="0" timeout="30" interval="10"
SEE ALSO
http://www.linux-ha.org/wiki/Delay_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 06/09/2014 OCF_HEARTBEAT_DELAY(7)