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, MSGID_RANDY 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: dennison@telepath.com Subject: Re: Timers in application Date: 1999/06/08 Message-ID: <7jjch5$nlp$1@nnrp1.deja.com>#1/1 X-Deja-AN: 487080841 References: <375D1E02.8F1C0D6E@res.raytheon.com> X-Http-Proxy: 1.0 x23.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Tue Jun 08 15:23:31 1999 GMT Newsgroups: comp.unix.solaris,comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-06-08T00:00:00+00:00 List-Id: In article <375D1E02.8F1C0D6E@res.raytheon.com>, askeya 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.