From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: gnat: time-slicing
Date: Tue, 16 Jul 2002 09:29:07 -0400
Date: 2002-07-16T13:29:07+00:00 [thread overview]
Message-ID: <ah1733$hhs$1@nh.pace.co.uk> (raw)
In-Reply-To: pan.2002.07.15.16.20.47.38263.1135@gmx.net
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" <janp9@gmx.net> 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).
>
next prev parent reply other threads:[~2002-07-16 13:29 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-15 11:25 gnat: time-slicing Jan Prazak
2002-07-15 8:44 ` Dale Stanbrough
2002-07-15 19:10 ` Jan Prazak
2002-07-15 17:16 ` David C. Hoos
2002-07-15 23:30 ` Jan Prazak
2002-07-16 0:54 ` Jan Prazak
2002-07-16 10:46 ` Lutz Donnerhacke
2002-07-16 11:57 ` Aaro Koskinen
2002-07-16 12:57 ` SteveD
2002-07-16 15:18 ` Florian Weimer
2002-07-16 13:29 ` Marin David Condic [this message]
2002-07-17 19:29 ` Jan Prazak
2002-07-15 13:07 ` time-slicing David C. Hoos
2002-07-15 14:56 ` time-slicing Ian Broster
2002-07-15 19:10 ` time-slicing Jan Prazak
2002-07-15 19:10 ` time-slicing Jan Prazak
2002-07-15 19:05 ` time-slicing Anders Gidenstam
2002-07-15 23:30 ` time-slicing Jan Prazak
2002-07-15 20:33 ` time-slicing Darren New
2002-07-16 16:30 ` time-slicing Pascal Obry
2002-07-16 23:05 ` time-slicing Jan Prazak
2002-07-16 21:33 ` time-slicing Robert Dewar
2002-07-15 21:03 ` gnat: time-slicing tmoran
2002-07-16 13:04 ` Jan Prazak
2002-07-16 21:29 ` Robert Dewar
2002-07-17 19:29 ` Jan Prazak
2002-07-17 16:44 ` Pascal Obry
2002-07-17 21:38 ` Jan Prazak
2002-07-17 19:21 ` Randy Brukardt
2002-07-17 22:44 ` Jan Prazak
2002-07-17 19:57 ` Marin David Condic
2002-07-18 18:38 ` Larry Kilgallen
2002-07-20 11:52 ` Robert Dewar
2002-07-17 19:43 ` Pascal Obry
2002-07-18 18:55 ` Jan Prazak
2002-07-18 17:01 ` Pascal Obry
2002-07-18 17:03 ` Pascal Obry
2002-07-18 22:38 ` chris.danx
2002-07-18 2:50 ` R. Tim Coslet
2002-07-18 12:54 ` SteveD
2002-07-20 11:56 ` Robert Dewar
2002-07-18 12:02 ` Frank J. Lhota
2002-07-19 2:33 ` Robert A Duff
2002-07-19 13:32 ` Jan Prazak
2002-07-19 23:46 ` Keith Thompson
2002-07-20 0:36 ` Robert A Duff
2002-07-20 4:25 ` Darren New
2002-07-20 11:47 ` Robert Dewar
2002-07-21 10:58 ` Keith Thompson
2002-07-31 22:28 ` Robert A Duff
2002-08-01 19:28 ` Erroneous execution? (was Re: gnat: time-slicing) Ben Brosgol
2002-08-01 22:03 ` Robert A Duff
2002-08-02 3:59 ` Ben Brosgol
2002-08-13 22:30 ` Robert A Duff
2002-08-02 4:17 ` Robert Dewar
2002-07-19 3:17 ` time-slicing SteveD
2002-07-19 13:32 ` time-slicing Jan Prazak
2002-07-19 12:41 ` time-slicing SteveD
-- strict thread matches above, loose matches on Subject: below --
2002-07-18 4:44 gnat: time-slicing Grein, Christoph
2002-07-18 18:55 ` Jan Prazak
2002-07-18 16:35 ` Sergey Koshcheyev
2002-07-19 1:37 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox