Solved

Solaris 8 - Clock granularity

Posted on 2002-06-28
3
846 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

829 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