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,b65739503d72f172 X-Google-Attributes: gid103376,public X-Google-Thread: 11035d,b65739503d72f172 X-Google-Attributes: gid11035d,public From: David Brown Subject: Re: Timers in application Date: 1999/06/08 Message-ID: #1/1 X-Deja-AN: 487083138 Sender: davidb@opus.davidb.org References: <375D1E02.8F1C0D6E@res.raytheon.com> Followup-To: comp.lang.ada X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.snfc21.pbi.net 928852135 216.103.8.60 (Tue, 08 Jun 1999 07:28:55 PDT) Organization: David Brown Services NNTP-Posting-Date: Tue, 08 Jun 1999 07:28:55 PDT Newsgroups: comp.unix.solaris,comp.lang.ada Date: 1999-06-08T00:00:00+00:00 List-Id: >>>>> On Tue, 08 Jun 1999 07:43:30 -0600, askeya said: > I am developing a Solaris 2.6 application (Ada95 with Apex) that needs a > timer service that allows me to schedule multiple simultaneous wakeups. > 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. Why not implement this with the services that Ada provides? Most likely, your Ada library will provide the same granularity as your OS for timers. You could implement a single task that you register with, that sorts and keeps track of what wakeups are needed. Or, if the number of wakeups is smaller, have a separate task for each wakeup. Hope this helps, Dave Brown