Solved

Solaris 8 - Clock granularity

Posted on 2002-06-28
3
842 Views
Last Modified: 2013-12-27
Hi,

What is the granularity of the clock in Solaris 2.8?  How small of an increment in millisecs can I specify for sleep times on tasks etc...


Thanks
Knel

urls with this info would be appreciated
0
Comment
Question by:knel1234
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
chris_calabrese earned 50 total points
ID: 7116126
You can specify microseconds (via setitimer(), for example).  But the clock is somewhere between a milisecond and 1/60 seconds depending on the model machine it's running on.

And even if you had microseconds granularity on the timer, it wouldn't matter because Solaris doesn't support hard real-time processes, which means your process just goes back into the "ready to run" queue when the timer pops.  There's no guarantee it will actually start executing at that time.

In practice, you should be able to get resolution to within a hundred miliseconds under most circumstances.
0
 
LVL 3

Author Comment

by:knel1234
ID: 7116318
Chris,

Its 2.8(64-bit) running on a 3500.  I am assuming no change to your answer but I just wanted to clear up the "depending on the model machine it's running on" point.

knel
0
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 7117240
Yeah, but the Sun manuals just say things like "timer resolution is dependant on hardware" but don't point to where to find the resolution for your hardware...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now