Solved

Solaris 8 - Clock granularity

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Skill Development 15 173
Write an app 10 69
Writing a UNIX script menu allowing for multiple options. 5 52
Martian Packets Unix 5 50
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 …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
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…

815 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

12 Experts available now in Live!

Get 1:1 Help Now