comp.lang.ada
 help / color / mirror / Atom feed
From: mfeldman@seas.gwu.edu (Michael Feldman)
Subject: Re: Concurrency in Gnat 3.05?
Date: 1996/07/20
Date: 1996-07-20T00:00:00+00:00	[thread overview]
Message-ID: <4srvs6$qkl@felix.seas.gwu.edu> (raw)
In-Reply-To: dewar.837740961@schonberg


In article <dewar.837740961@schonberg>, Robert Dewar <dewar@cs.nyu.edu> wrote:

>That's quite wrong. Serious use of tasking for real-time programs
>generally prefers to completely avoid time slicing. That is why the
>requirement in the real time annex of Ada is that time slicing must
>NOT occur using the default scheduling policy (FIFO_Within_Priorities).

This is interesting, because once again we are left to read between the
lines of the RM. Several Ada 83 implementations - Ada/Ed and
Meridian, to cite two such - explicited provided for time-slicing at
the user's option. 

>Generally time slicing can be made available on many operating systems,
>but it is a bit tricky in DOS, because of limitations in the operating
>system. It certainly would be possible, but since it is not required (in
>fact it is only permitted as an option), it is not a high priority item.

I still find it interesting that this is never stated in the RM, even
as a possibility.  Yes, optional (non-default) dispatching policies
are provided for. And of course, the entire dispatching discussion
has been moved from the Ada 83 Chap. 9 to Annex D.

>If what you want is effective concurrency between multiple threads, there
>are many ways to achieve this in correctly programmed Ada. An Ada program
>that depends on time slicing is non-portable.

I agree, Robert. 

My only quibble is with the need to read about time-slicing in the RM
only between the lines. You said in an earlier post that you're not even
sure whether the threads implementations of GNAT are in conformance
with Annex D, except for the dodge that this "simulates multi-processors."
IMHO, after all the work that went into such a recent RM, one should
not have to guess at these things.:-)

Mike Feldman




  reply	other threads:[~1996-07-20  0:00 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4sjqte$3mu@masala.cc.uh.edu>
1996-07-18  0:00 ` Concurrency in Gnat 3.05? Kevin J. Weise
1996-07-18  0:00 ` Robert Dewar
1996-07-19  0:00   ` Spasmo
1996-07-19  0:00     ` Tucker Taft
1996-07-18  0:00 ` Jerry van Dijk
1996-07-20  0:00   ` Robert Dewar
1996-07-20  0:00   ` Robert Dewar
1996-07-18  0:00 ` Samuel Tardieu
1996-07-20  0:00   ` Robert Dewar
1996-07-20  0:00     ` Michael Feldman
1996-07-18  0:00 ` Robert Dunn
1996-07-19  0:00   ` Spasmo
1996-07-18  0:00     ` Robert Dewar
1996-07-20  0:00       ` Michael Feldman [this message]
1996-07-19  0:00   ` Jon S Anthony
1996-07-19  0:00     ` Robert Dewar
1996-07-20  0:00     ` Michael Feldman
1996-07-24  0:00     ` Jon S Anthony
1996-07-22  0:00   ` Jon S Anthony
1996-07-22  0:00   ` Jon S Anthony
1996-07-24  0:00     ` Michael Feldman
1996-07-22  0:00   ` Jon S Anthony
1996-07-24  0:00   ` Jon S Anthony
1996-07-20  0:00 ` Michael Feldman
1996-07-20  0:00   ` Robert Dewar
1996-07-21  0:00   ` Jerry van Dijk
1996-07-24  0:00   ` Spasmo
replies disabled

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