Solved

Solaris 8 - Clock granularity

Posted on 2002-06-28
3
850 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

615 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