From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d3c9f386a8038d3c X-Google-Attributes: gid103376,public From: Simon Wright Subject: Re: Timers in application (again) Date: 2000/07/14 Message-ID: #1/1 X-Deja-AN: 646456690 X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 References: <962353369.632238@edh3> <8ji8i7$7l5$1@nnrp1.deja.com> <962628027.67730@edh3> <3962B30F.969E7188@telepath.com> <396482A7.67F4E3E8@telepath.com> <963574595.599754@edh3> X-Trace: news.demon.co.uk 963605228 nnrp-08:15384 NO-IDENT pogner.demon.co.uk:158.152.70.98 Organization: At Home Newsgroups: comp.lang.ada X-Complaints-To: abuse@demon.net Date: 2000-07-14T00:00:00+00:00 List-Id: Frode Tenneboe writes: > Ted Dennison wrote: > : Simon Wright wrote: > > :> Solaris runs with 10 mS ticks out-of-the-box. You can easily set this (2.6 > :> and later) to 1 mS (set hires_tick to 1 in /etc/system). > > : So both 20 and 50Hz should be achievable "out of the box". Frode can go check > : /etc/system to see if the default has been modified. > > The default has not been changed. > > Would changing to a hires tick improve reliability when I don't want/need > granularity of <10mS? > > Must I run as root on solaris to get the expected behviour? It appears > as it works better for root but I have not tested heavily. If you use the default tick, you will delay (or delay until) for at least 10 mS; in practice, this means 20 mS intervals, other things being equal. If that's OK, fine. Changing the tick doesn't cause any problems we are aware of, unlike Linux where the system does seem a little inclined to lock up (once per 3 weeks, perhaps) -- but the standard libraries weren't rebuilt, so there may be some dependencies on the actual value of HZ (). With GNAT, a tasking program run as root will use the RT dispatching class, and priorities will work. Run as any other user, priorities will not work (and the OS will do its own round-robin or whatever scheduling).