Subj : Re: Solaris real-time thread capabilities To : comp.unix.solaris,comp.programming.threads From : David Powell Date : Wed Sep 07 2005 02:12 pm capnwhit@yahoo.com wrote: > Casper H. S. Dik wrote: > >>The setitimer() function is much better at delivering the >>right number of signals per unit of time. >> > > Aha!... Pearls of wisdom from the collective knowledge of the human > race, brought directly to your neighborhood by the power of Usenet and > Google! Thanks a lot Casper! I will try this as well! Better still could be timer_create(3RT). With it and CLOCK_HIGHRES, you can get the highest precision timing available to a user program on Solaris. The implementation of CLOCK_HIGHRES timers is based on the kernel's cyclic subsystem[1] instead of the system clock. This means your timeouts aren't constrained to the system clock rate (so there's no need to set hires_tick to get improved precision). The one caveat is that, in order to use CLOCK_HIGHRES timers, your process must either be run as root or (on Solaris 10) otherwise have the PRIV_PROC_CLOCK_HIGHRES privilege. Dave [1] http://blogs.sun.com/roller/page/eschrock?anchor=inside_the_cyclic_subsystem .