HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Timer Setting
Operating System - HP-UX
1833788
Members
2651
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 08:07 PM
10-30-2003 08:07 PM
Timer Setting
Clock resolution as mentioned in the man page of system call 'setitimer' is 1/HZ sec and value of this constant 'HZ' is defined in include file ,which is 100 . That means the smallest interval timer can only be 10 ms .Is there anyway by which we can reduce it to say 1/10 ms or 1 ms as desired by our application.What is the smalles clock resolution we can get on the system .we are using system HP-UX workstation b2600.
do good, have good
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 01:15 AM
10-31-2003 01:15 AM
Re: Timer Setting
Hi
In the context of setitmer it looks like you are right.
However, the kernel can handle much smaller time increments, via the selct() or nanosleep() calls.
see "man nanosleep".
NB also
# getconf CLOCKS_PER_SEC
1000000
# getconf CLK_TCK
100
Hope this helps.
-- Graham
In the context of setitmer it looks like you are right.
However, the kernel can handle much smaller time increments, via the selct() or nanosleep() calls.
see "man nanosleep".
NB also
# getconf CLOCKS_PER_SEC
1000000
# getconf CLK_TCK
100
Hope this helps.
-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 02:26 AM
10-31-2003 02:26 AM
Re: Timer Setting
You want to make use of the gettimeofday() system call. Although it has microsecond precision the actual resolution is typically a few milliseconds.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP