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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,63360011f8addace X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-17 01:23:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!news-x2.support.nl!psinet-eu-nl!psiuk-p4!uknet!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: gnat: time-slicing Date: Tue, 16 Jul 2002 09:29:07 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1026826147 17980 136.170.200.133 (16 Jul 2002 13:29:07 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 16 Jul 2002 13:29:07 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:27181 Date: 2002-07-16T13:29:07+00:00 List-Id: It sounds like you are looking for some way of controlling the scheduling algorithm. Some compilers use some version of a "run until blocked" algorithm and the "blocked" part won't necessarily happen where you'd like it to (such as on an I/O statement). Some implementations might give you the ability to select some flavor of round-robin timeslicing as the means of scheduling. That would give you more of a "fair share" situation, but won't necessarily give you deterministic behavior from your program. If you don't need determinism, this may be a viable option. You need to investigate your compiler documentation to see if you can do anything to specify the scheduling algorithm to use. Check out Annex D or the ARM very carefully & you might find some useful information there about scheduling and priorities. Tasking is one of the more complicated features of Ada and I regularly find myself having to go back to the ARM and re-learn how to do it. :-) MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "Jan Prazak" wrote in message news:pan.2002.07.15.16.20.47.38263.1135@gmx.net... > > The task uses one Put, which puts current time somewhere on the screen. > And this task has to be completely independent from other tasks (= main > procedure). There has to be a way to do this with gnat, and that's also > my question. I don't want to slow down other tasks with "Delay", just to > let Timer-task do the next step (for example when doing some difficult > computing, maybe array-sorting or similar things), so there has to be a > "direct" way (like a pragma). >