hz(9v)hz(9v)NAME
hz - Global Variable: Stores the number of clock ticks per second
SYNOPSIS
extern int hz;
DESCRIPTION
The hz global variable is set to the number of clock ticks per second. The value is useful for timing purposes. For example, if a kernel
module wants to schedule a routine to be run in 2 seconds, you could use the following call:
.
.
. timeout(lptout, (caddr_t)dev, 2*hz);
.
.
.
FILES hz(9v)
Check Out this Related Man Page
timeout(9r)timeout(9r)NAME
timeout - General: Initializes a callout queue element
SYNOPSIS
void timeout(
int (*function) (),
caddr_t argument,
register int time );
ARGUMENTS
Specifies a pointer to the routine to be called. Specifies a single argument to be passed to the called routine. Specifies the amount of
time to delay before calling the specified routine. You express time as time (in seconds) * hz.
DESCRIPTION
The timeout routine initializes a callout queue element to make it easy to execute the specified routine at the time specified in the time
argument. You often use callout routines for infrequent polling or error handling. The routine you specify will be called on the interrupt
stack (not in processor context) as dispatched from the softclock routine.
The global variable hz contains the number of clock ticks per second. This variable is a second's worth of clock ticks.
Thus, if you wanted a 4-minute timeout, you would pass 4 * 60 * hz as the third argument to the timeout routine as follows:
/* A 4-minute timeout */
.
.
.
timeout(lptout, (caddr_t)dev, 4 * 60 * hz);
NOTES
The granularity of the time delay is dependent on the hardware. For example, the granularity of some Alpha CPUs is 1024 clock ticks per
second. Other Alpha CPUs have a granularity of 1200 clock ticks per second. Still other Alpha CPUs exhibit a granularity of 128 clock
ticks per second. Because the granularity of the time delay is dependent on the hardware, the operating system provides the hz and lbolt
global variables. Use the hz global variable to determine the number of clock ticks per second for a specific Alpha CPU. Use the lbolt
global variable as a periodic wakeup mechanism.
RETURN VALUES
None
SEE ALSO
Routines: untimeout(9r)timeout(9r)
Hi,
i use sol10 with java desktop2 and i have problem with the screen resolution.
It is possible to change it up to 1024x768@100Hz? in screen resolution menu
there is only the 640x480@60Hz. (6 Replies)
Having had a big sort out at work I've brought home 3 Dell Dimension XPS-450 PCs. I've installed Ubuntu Linux on one which went fine, everything works, network, sound, Graphics Drivers etc. and it can see all the other PCs & storage on my network and can use the Shared printers from other PCs on... (12 Replies)
I don't know a lot of the world of Linux, but i want to start with an old machine; did someone knows if i can install Linux in a computer with a processor Pentium (not celeron) @ 133 Mhz, 98Mb in RAM (PC100) and 3Gb Hard Drive?
a friend tell me about Ubuntu and openSUSE, but I don't know if... (5 Replies)
Hi
I am very new to Linux, but very keen to learn it.
I am having a desktop of 300 MHz with 128 MB RAM and 30 GB hard drive with Windows XP.
My first question is - Is there any version/flavour of Linux available that can be installed on above system especially Fedora with less compromise... (6 Replies)
Hello Forum team members,
I have a problem with ULTRA 10. It does not boot and just stops at this prompt.
OpenBoot 3.19, 256 MB...
Boot device:disk:a File and args:
Need your help,
Thanks in advance,
Regards
NV. (7 Replies)
Can anyone suggest a linux OS that would run fairly well on this machine? It has 64mb ram.
Have tried mandrake 9.0 but having major problems getting the wireless network card to work..
Does anyone know where you can down load mandrake 9.1 or 9.2.. Seems to be no trace of them out there on... (4 Replies)
Dear Guru,
My boss has a plan to upgrade cpu of server so he needs to know how much better performance(percentage) is Ultra SPARC IV+ 1.95 GHz than Ultra SPARC IV 1.35 GHz?.
I am looking for documentation to reference but I didn't see anything close to my point. If who know,... (3 Replies)
hey guys i'm in university and i bought my self a sun ultra SPARC netra 500mhz machine with the usb ports a vga gfc and cdrom drive
now i have a problem (bought it off ebay) i trying to install a fresh solaris 10 server op onto it but it looks like it previously had linix installed and... (38 Replies)
Hi ,
I am planing to buy IBM pSeries Power5 9111-285 1,9 GHz but I am confused with few things. I would be happy if you could clear it up for me ?
1.Do I have to buy some license in order to create Lpars ?
2.Do I have to buy some license in order to use HMC , micro - partiocioning , VIOS... (4 Replies)
Hi bros,
CPU speed of Sun Sparc Enterprise T5140 in data sheet is 1200 Mhz. Why it shows in "prtdiag -v" command each thread just has speed at 1165 Mhz.
Thank you,
tien86 (4 Replies)
A very simple crude sinewave generator.
The file required is generated inside the code, is linear interpolated and requires /dev/audio to work. Ensure you have this device, if not the download oss-compat from your OS's repository...
It lasts for about 8 seconds before exiting and saves a... (5 Replies)