comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: Timers in application
Date: 1999/06/08
Date: 1999-06-08T00:00:00+00:00	[thread overview]
Message-ID: <7jjch1$nll$1@nnrp1.deja.com> (raw)
In-Reply-To: 375D1E02.8F1C0D6E@res.raytheon.com

In article <375D1E02.8F1C0D6E@res.raytheon.com>,
  askeya <askeya@res.raytheon.com> wrote:
> I am developing a Solaris 2.6 application (Ada95 with Apex) that needs
a
> timer service that allows me to schedule multiple simultaneous
wakeups.
> I have looked at "setitimer" and "alarm" man pages, but these services
> appear to only allow one timer per process and/or thread.  Is this
> correct?
>
> I have read some postings about Posix timers, but can not figure out
any
> key words to use for man pages.  Will Posix timers allow multiple
> simultaneous timers?  If so, what man pages can I look at?
>
> Any other ideas for timer services I can use?  I need a granularity of
> at least 100 milliseconds, but faster would be better.  I am
developing
> in Ada95 but can create interfaces into standard C libs if necessary.

Odd, you are asking an OS question in an Ada newsgroup, but I may yet
have an Ada answer for you.

What's wrong with the "delay until" statement? Does your compiler not
support the real-time annex (D)? We are using "delay until" for
scheduling on a flight simulator, parts of which run at 2KHz (every 500
*micro*seconds) which we intend to FAA certify. I'd be quite shocked if
your compiler couldn't deliver a granularity better then 100
milliseconds.

If your compiler can't do that for you, I suggest you switch to one that
does. In the long run it will be way cheaper than playing with
non-portable OS calls.

--
T.E.D.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




  parent reply	other threads:[~1999-06-08  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-08  0:00 Timers in application askeya
1999-06-08  0:00 ` dennison
1999-06-08  0:00   ` James E. Hopper
1999-06-09  0:00     ` dennison
1999-06-08  0:00 ` David Brown
1999-06-08  0:00 ` dennison [this message]
1999-06-08  0:00 ` Matthew Heaney
1999-06-09  0:00 ` askeya
1999-06-09  0:00 ` Simon Wright
replies disabled

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