comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: Timers in application (again)
Date: 2000/07/14
Date: 2000-07-14T00:00:00+00:00	[thread overview]
Message-ID: <x7vlmz4o4zz.fsf@pogner.demon.co.uk> (raw)
In-Reply-To: 963574595.599754@edh3

Frode Tenneboe <ft@alne.edh.ericsson.se> writes:

> Ted Dennison <dennison@telepath.com> 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
(<asm/param.h>).

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).




      reply	other threads:[~2000-07-14  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <962353369.632238@edh3>
     [not found] ` <8ji8i7$7l5$1@nnrp1.deja.com>
     [not found]   ` <962628027.67730@edh3>
     [not found]     ` <3962B30F.969E7188@telepath.com>
     [not found]       ` <x7vem582v66.fsf@pogner.demon.co.uk>
     [not found]         ` <3963D186.DD987838@earthlink.net>
     [not found]           ` <x7vsntn56v4.fsf@pogner.demon.co.uk>
     [not found]             ` <3965DFB2.48371EAA@earthlink.net>
     [not found]               ` <x7vu2dxixhx.fsf@pogner.demon.co.uk>
2000-07-12  0:00                 ` Timers in application (again) Robert I. Eachus
2000-07-12  0:00                 ` Robert I. Eachus
     [not found]         ` <396482A7.67F4E3E8@telepath.com>
2000-07-14  0:00           ` Frode Tenneboe
2000-07-14  0:00             ` Simon Wright [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox