Subj : Re: Solaris real-time thread capabilities To : comp.unix.solaris,comp.programming.threads From : Casper H.S. Dik Date : Wed Sep 07 2005 11:03 am Greg Menke writes: >capnwhit@yahoo.com writes: >> Hello Greg, Thanks for your reply. My current question is related to >> real-time scheduling capabilities of Solaris 8 and/or Solaris 9. The >> problem can be boiled down to the following very simple tests: >> >> 1. Can I use nanosleep to try to wake up every 10 ms (on average)? >> 2. Can I use SIGALRM instead? >> 3. Can I use gethrtime instead? >Have you run empty loops using those various techniques to see if you >can achieve the timing you're looking for? If yes (and I imagine >nanosleep and gethrtime will be a reasonable way to approach it), then >the problem is elsewhere. Perhaps you can do the empty loop test with >nanosleep and SIGALRM and see which gives you the minimum jitter. The setitimer() function is much better at delivering the right number of signals per unit of time. Casper -- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Statements on Sun products included here are not gospel and may be fiction rather than truth. .